frequntly asked questions in interviews based on java

hello
respected crazy engineers
post here questions & answers of java technology
  1. What is UNICODE?- Unicode is used for internal representation of characters and strings and it uses 16 bits to represent each other.
  2. What is Garbage Collection and how to call it explicitly?- When an object is no longer referred to by any variable, java automatically reclaims memory used by that object. This is known as garbage collection. System. gc() method may be used to call it explicitly.
  3. What is finalize() method?- finalize () method is used just before an object is destroyed and can be called just prior to garbage collection.
  4. What are Transient and Volatile Modifiers?- Transient: The transient modifier applies to variables only and it is not stored as part of its object’s Persistent state. Transient variables are not serialized. Volatile: Volatile modifier applies to variables only and it tells the compiler that the variable modified by volatile can be changed unexpectedly by other parts of the program.

Replies

You are reading an archived discussion.

Related Posts

Do you like Google's simplicity? Do you like the search page that's just a logo, an empty box and few links? If yes, then Yahoo wants to change your view....
Its no surprise that Yahoo's ship is in trouble. The company that used to be 'GREAT' is now falling behind and finding it difficult to compete with the new rivals....
Dear all, After the successful I-Become Camp in IIT Powai Campus, we are continuing the series with our next camp on 15th May, 2010 in Mumbai. Conducted by IIT &...
how the person is benifited from CE..??
Hi CEans, in c language,is there any possibility to call another program from main program....?