Why objects are said to have physical reality when they are just software programs?

I am very new to java, infact to the programming world, and am confused about classes and objects. Why do we need a class to create an object? How and when these objects find physical reality? And why do we need to create a software model of a physical thing? Where are these objects and classes stored?  Please help. Gone through 10+ websites and 4 books ,couldn't get the clear picture.

0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
Why do we need a class to create an object?
I'ts almost like a construction drawing of a car. This drawing tells you e.g. what the car will look like an how many persons it can carry. But the drawing is not able to do that. But the real car build based on that drawing is able to do things planned in the drawing. But the drawing does not tell what horsepower the cars engine may have. There will be different engines that may fit in the car giving it differen maximun speed and scceleration.
Similar thing is with java classes and objects. A class describes what the objects created from that class are able to do. When You see a class you get a clear picture of those abilities without having an object yet. From that class you get objects having all the same behavior but the objects may differ in the properties given to them.
0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
How and when these objects find physical reality?
Not sure what you mean by that. A computer program has no physical reality in a way you coult touch. The physical reatity of a computer program is representet by the magnetic alignment of goups of tiny areas  at your hard drive or electric charge/discharge of the capacitors of your computers RAM. So there is no physical reality for a computer program.
0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
And why do we need to create a software model of a physical thing?
Imagin:
You are a car manufactorer. You have to prove that your cars are safe for their passengers in case of a crash. How do you check that? Are you willing to build hundreds of physical cars only to destroy them in a test crash?
The better way is to simulate the characteristics of the construction and the materials it will be build from in a computer program and do (most of) the crash test with that computer program untill you find a setup that is prommissing to pass a real physical crash test.
0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
Where are these objects and classes stored?
This question also has more than one answer:
1. Computer programs are stored in the world wide web and/or your computer (which effectively is part of the www).
2. Computer programes are stored on some kind of durable memory (punch tapes, magnetic tapes, barcodes, magnetic disks, memory cards/sticks, optical disks...)
3. Computer programs are stored in so called files at those locations and memory types. There are 2 types of files: human readable files and machine readable files. The human readable files are used by programmers to create or change a program. Some kind of program (called compiler or interpreter which is not the same and Java uses both) converts human readable files into machine readable files. Machine readable files contain the program as a sequence of numbers that a computer will interpret as commands and their parameters.
4. The machine readable files cannot be executed as long as they are at the locations and memories mentioned earlier. before a machine readable program can be executed it must be copied to the computers RAM.
hopefully this didn't made things worse... ;o)
bye
TPD

Similar Messages

  • Why do Goldengirl and PEG have a notice that they are online yet you can't contact them?

    Does it make any sense that Goldengirl and PEG have a notice when they are online and not online when it does not appear you can contact them?? Duh?

    Hi walterbutler, I have responded to your previous post How do you contact Goldengirl and the other customer relation person? Regards,

  • Suddenly jpg photos are displayed incorrectly (like overlit), also when they are downloaded which means that the files somehow get corrupted. The same photos look perfect in Safari.

    Firefox displays large jpg photos incorrectly, they are all like over lit and there is a real quality loss since just right clicking on a link of the photos and downloading them also displays them incorrectly in any photo tool. Looking at the photos in Safari and downloading them there displays no quality loss. I really hope this can be fixed.
    == This happened ==
    Every time Firefox opened
    == A few days ago, maybe with the last update

    Firefox displays large jpg photos incorrectly, they are all like over lit and there is a real quality loss since just right clicking on a link of the photos and downloading them also displays them incorrectly in any photo tool. Looking at the photos in Safari and downloading them there displays no quality loss. I really hope this can be fixed.
    == This happened ==
    Every time Firefox opened
    == A few days ago, maybe with the last update

  • Why can't itunes locate my music files when they are there?

    I think that this happened when I checked off both "keep iTunes media folder organized" and "copy files to iTunes Media Folder when adding to library."I had all of my files located at C:\Users\Beata\Music\iTunes\iTunes Media   and then I noticed that itunes made folders for all of of my music files because I have checked off the keep iTunes media folder organized. Ever since then, itunes can't find all of my files but only some of it and I don't want to go one by one to locate all of the songs. All of my songs are located in the same location which is C:\Users\Beata\Music\iTunes\iTunes Media\Music  I changed it to this location because all of my song files are located there and the place where it was located before, I didn't find the song files on there. I also noticed that itunes would oragize and create folders for my songs in the my music library and I thought that was the reason why itunes couldn't find the files because they were in the wrong location so I moved all of those folders to C:\Users\Beata\Music\iTunes\iTunes Media\Music  So, is it because all of my files are in folders since itunes organized them? All of my files are in album, artist, and song title folders. Where should all of these folders be located at? Also, iTunes creates multiple folders that have the same name and should I just leave the folders be or organize them myself because I have folders that have the same exact name as in the artist and title but it has different song files in the folders. Should I combine the files into the same folder that have the same artist or should I just leave it that way?  Please ,I really need help as I have tried almost everything.

    Help iTunes locate your media folder:
    No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967

  • Why does my screen saver say "no photos" when they are definately there?

    I just downloaded the latest OS update and my screen saver no longer works.  When i go into system preferences and set up the folder to use for the picture slide show--it gives me an error that there are "no photos". But I have triple-checked and the photos are in fact there.  Why doesnt screen saver see them??

    UPDATE:  I spoke with Apple and there is NO fix.  I've set up my photos in a hierarchy as follows
    Pictures FolderSlide Show Pictures Folder
    Sub folder jpegs
    Sub folder with jpegs
    sub-folder with jpegs
    Everytime i have a new batch of photos worthy of the slide show--i add a new sub-folder.  This worked perfectly fine with the old OS but does not work with Mountain Lion.  According to the Apple support tech i spoke with, Mountain Lion does not support going into that level of sub-folder.  Essentially it is seeing the "Slide Show Pictures folder" but all it sees are the next level of sub-fodlers themselves--it cant go into the next level to see the actual photos.  Sounds pretty stupid if you ask me

  • SharePoint Service Accounts - Passwords have expiration date when they are set to never expire

    The managed accounts in my farm all have the Enable automatic password change
    unchecked.  Also these same accounts in AD have the Password never expires
    checked. 
    If I use get-spmanagedaccount to view the accounts, some passwords show as already expired or have a future expiration date.  The automatic change is set to False and nothing is listed under the Change Schedule. 
    The strange thing to me is that the passwords listed as expired are still valid and haven't been changed.  I even ran an iisreset just to check and there were no issues.  When I look in CA the next password change area is blank for all accounts.
    My question is why do the accounts list a password expiration date if it's set to
    not automatically change passwords.  If you do change the password through AD you will see a new expiration date set for 90 days later.  I'm just wondering how much I should worry about the service accounts that are listed
    as having expired passwords even though the passwords aren't expired.  My sites and services are running but I'm just curious if this could potentially cause other errors.
    Thoughts?  Prayers?  Condolences?
    Jennifer Knight (MCITP, MCPD)

    I checked the My farm as well, you are correct. Even you did not select the automatic password change still it showed 90 days as expiry. 
    You don't need to worry about it, it will not hurt, one of the dev farm having account which  expired almost 10 months ago. :)
    you can double check with in central admin and you will see no expiration set over their.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Why are guides embedded in my photo when they are not turned on?

    They hey and are not visible to me but only show on another person's computer.

    Hard for me to say what transpired at your end. I even forget what switches I flip in this program. I remember dimly getting a file with guides in them. Perhaps the author thought that hiding them on his side would hide them when I opened the file.
    Anyway perhaps this will help avoid that issue in the future:
    Even if the guides are hidden, if View > Clear Guides is active, you have them. If the command is grayed out, there are no guides to clear, and you can send them on. Hope that helps somewhat.
    Gene

  • Why does the IPhone 4 get really hot, when you are making a phone call??

    I can't seem to find the answer to this riddle . why does the iPhone 4 get really hot when you are making phone calls or when using face Time ??

    It doesn't.
    There must be an issue with your iphone.
    Have you tried reset?  Restore?
    Have you made an appointment at the genius bar to have them look at it?

  • In the music window of iMovie music selections are shown a number of times. Why? Shouldn't the duplications be deleted? They are not doubled in iToons

    In the music window of iMovie , music selections are shown a number of times. Why? Shouldn't the duplications be deleted? They are not doubled in iToons.
    How does one delete them? How do you avoid duplications in the future?

    Are you referring to the jingles?
    They are available in different lengths; short, medium and long. They also may be available in .CAF and .AIFF formats.
    If you are referring to your songs in iTunes, I have never seen that one before.

  • Why does FCP looses its source file reference when files are copied

    Why does FCP looses its source file reference when files are copied from another project??
    i have this happen all the time, I move all my media to another drive and files that originated in another project do not reconnect because they have lost there source?
    Any way to fix this mess? i am in the middle of reconnecting 400 files by hand one at a time!!!
    Thanks, mark

    Because you changed the file path. From one hard drive to another...the hard drive name is no doubt different, and then if you have the files in different folder structures then yeah, it will lose the connection to that media.
    Best thing to do is to clone your media drive, or name the other drive the same name, and keep the exact same file structure (folders in folders) as the original drive. Then you won't need to reconnect.
    Shane

  • Why does it say I have no service when I connect my Ipad to my comupter that has internet thru an air card

    Why does it say I have no service when I connect my Ipad 2 to my comupter with internet thru an aircard. First time user.

    Do you have gfxCardStatus installed?  Is your monitor set to "Integrated" or "Discrete".  You want it set to Discrete to drive the external HDMI display.
    Try resetting the PRAM and SMC
    <About NVRAM and PRAM>
    <Intel-based Macs: Resetting the System Management Controller (SMC)>
    Are you sure you have a good miniDisplayPort to HDMI cable?
    Do you have another HDMI display you can test against (your neighbor's HDMI capable TV).
    Do you have friend that can test the cable using their Mac and maybe their TV or a monitor that has HDMI input.

  • I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    From the Finder menu select 'Secure Empty Trash'. If this or the suggestion above doesn't resolve the problem take a look at the various suggestions in this link:
    http://www.thexlab.com/faqs/trash.html

  • HT204406 Hello,  I have songs that show they are "Waiting" for download from the cloud but they are greyed out.  Some songs in one album are done others in the same album will not download. It is not a time function because i have been working on this for

    Hello,  I have songs that show they are "Waiting" for download from the cloud but they are greyed out.  Some songs in one album are done others in the same album will not download. It is not a time function because i have been working on this for weeks. I have allowed my compter to run for days and the songs are still not accessible.  I have a Match subscription and Match is working.  If I click on the "Genre" link the greyed out songs show that they are ready for download from the cloud but I cannot download them.  I have downloaded over 1500 other songs, so I am trying to understand what is going on here. I would appreciate any help anyone can give me.
    Thanks

    I did think about that and if I have to I will do that, however there are about 50 songs. I have closed and reopened iTunes several times and I am sure that I have the latest version. It fails right away but I can click on the cloud download icon and download the song that it failed on ... therefore it is not that song "or any one song" causing the issue. Any ideas?

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • I have been contacted by many people in my contact list indicating that they are receiving emails from me, but when they open it, it is about a Canadian drug company. How do I clear this issue?

    I am either receiving emails indicating that emails sent from my computer were "undeliverable" or I getting emails from contacts stating they are receiving emails from me. When they open these emails, they have a link to a Canadian drug company.

    Contact your email provider. Firefox is a web browser.

Maybe you are looking for