Results 1 to 2 of 2
- 10-13-2012, 05:27 AM #1
Member
- Join Date
- Sep 2012
- Posts
- 44
- Rep Power
- 0
Create objects. What happens to objects on close
So I have been trying to learn Java using some online resources. I am hung up on creating arrays of objects. I have some sample code so that is not why I am here. I am trying to put the pieces together and wondered, what happens to an object when I close my IDE. I am still trying to wrap my brain around everything so I appologize if this seems like a stupid question.
The reason I ask is I was trying to make a simple banking program. Letting someone Add, Delete, or Modify account. After coming to the Add Account point, I started to try and learn to write to a .txt file as that seemed like the logical way to store data like Name, Numbers, etc. But then I was confused as to exactly how this all worked for Objects since it doesn't have a .txt file associated to it. For instance if I were to make an Account[].
- 10-13-2012, 09:46 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,426
- Blog Entries
- 7
- Rep Power
- 17
Re: Create objects. What happens to objects on close
Objects are just sequences of bits and bytes in RAM memory; an object is just a concept in our minds, i.e. the way we think about those sequences of bits and bytes. a C programmer would think in terms of 'structs', a Pascal programmer would think about 'records' etc. When you kill your IDE or turn off your computer those bits are gone, lost for the posterity. Java does know about 'serialization' of objects where those bits are written to persistent memory (e.g. a disk) such that the objects can be reconstructed later.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
how to auto create objects
By Sling-it in forum AndroidReplies: 7Last Post: 01-08-2013, 11:42 AM -
Noob question - Create objects using objects as parameters
By pantaloc in forum New To JavaReplies: 12Last Post: 04-29-2012, 02:55 PM -
create new Objects with for loop
By nome in forum New To JavaReplies: 4Last Post: 02-28-2012, 02:26 AM -
How to create an array of objects
By redmaverick in forum New To JavaReplies: 7Last Post: 10-19-2009, 02:14 AM -
read txt file,with some records, create objects and store objects in tables of a db.
By stamv in forum JDBCReplies: 1Last Post: 01-22-2009, 04:25 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks