• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

swap method

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
what is swapping in java ?
pls respond
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swap is a term "used" regularly in programming languages to indicate an exchange / interchange of values between 2 instances of the same object or type. It does not pertain only to Java.
There are a few forums on this website that have discussed this topic in the past. This link should give you a better idea about it.
http://www.javaranch.com/ubb/Forum33/HTML/000212.html
Also, I think you have posted this topic in a forum that discusses Applets. I guess you should be posting such requests in the "Java in General" forum.
Deepak

[This message has been edited by Deepoo (edited July 21, 2000).]
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"swapping" is also a term used to describe the process of moving chunks of data from memory to disc and back again as needed. This allows a computer to pretend it has more memory than it really has, and frees the individual applications from having to worry about managing their own memory usage.
For example, if I have ten programs running on my machine with 64MB of main memory and 256MB of "swap space" on a disc. Each of those programs can use any amount of memory, as long as the total is less than 256MB. Any programs which are waiting for something may be "swapped" out to disc, to allow more main memory for the others which are actively running. When a program needs to restart it can be loaded back in to main memory and continue as before.
 
We're being followed by intergalactic spies! Quick! Take this tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic