Java how to store information in computer memory?

computer memory info on Computer Memory: Building Your Own Computer
computer memory info image




thimitriie


I know how to program in java, but how do you store info in the computers memory so after you close the program and reopen it, it will still be there. If you want to, could you show me an example of a program that does this.


Answer
You should either write into files or databases depending on the situation and level you're in. The database option is really way bigger than Yahoo Answers and even the files option is not as easy as it looks like. This link is not bad:

http://www.javafaq.nu/java-example-code-193.html

but the following link describes one of the simplest ways of storing information:

http://once-upon-a-java.blogspot.com/2008/12/file-buffered-readwrite.html

What is the difference between Kb and Mb and what are they?




Caroline S


What is the difference between a Kb and Mb in computer memory terms. I am downloading sims for my sims game and I don't know what would be considered to take up a lot of memory. For example: This sims right here named Joslyn is 9.8 MB. Is that a lot? I have a small computer so I don't know how much memory I should be taking up with these sims from online.


Answer
a KB is a kilobyte of information ... that equals 1024 Bytes of data ... a byte is 1024 bits of information ... basically a bit is the smallest amount of digital info and one can think of it as a single digit or character.

So a Megabyte is the equivalent of 1024 Kilobytes. Nowadays that is not a a huge amount of data. Most modern computers have at least one or two or more Gigabytes of memory basically 1000 megabytes) and usually close to a terabyte (1000 gigabytes) of data storage. So if you computer is less than 4 years old you should not have to worry about 9.8 mb of data. By modern standards it should be of no concern to a computer. However on a hand held device such as a smart phone it may be of some consequence but not much in terms of data storage or application.




Powered by Yahoo! Answers

Comments :

0 komentar to “Java how to store information in computer memory?”
 

Sexy Lace Bikini

Leave little to the imagination in this super sexy booty short bikini transparent lace. Adjustable triangle top with peek-a-boo slits ties at neck and back. Matching ruffled booty shorts leave so little to the imagination! 90% Nylon 10% Spandex. Four way stretch means one size fits most. Unlined. Club Wear by Body Zone Read More

LG Scarlet

This event, which was attended by more than 200 media from Middle East and Africa, followed earlier events in Los Angeles and in London that drew celebrities for a mock premiere event to reveal the secret of “Scarlet, The Hit New TV Series,” which had been promoted through broadcast and online trailers.