frequntly asked questions in interviews based on java
hello
respected crazy engineers
post here questions & answers of java technology
respected crazy engineers
post here questions & answers of java technology
- What is UNICODE?- Unicode is used for internal representation of characters and strings and it uses 16 bits to represent each other.
- 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.
- What is finalize() method?- finalize () method is used just before an object is destroyed and can be called just prior to garbage collection.
- 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.
0