CrazyEngineers
  • frequntly asked questions in interviews based on java

    sherya mathur

    sherya mathur

    @sherya-mathur-cI63wY
    Updated: Oct 22, 2024
    Views: 905
    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.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register