Friday 11 November 2016

critical java interview qustions

  

 How can you determine if JVM is 32-bit or 64-bit from Java Program?
    Can you create an Immutable object that contains a mutable object?
    How can you mark an array volatile in Java?
    What will this return 5*0.1 == 0.5? true or false?
    What is the right data type to represent Money (like Dollar/Pound) in Java
    Is ++ operation thread-safe in Java?
    In Java, can we store a double value in a long variable without explicit casting?
    How can you do constructor chaining in Java?
    How can we find the memory usage of JVM from Java code?
    Can you catch an exception thrown by another thread in Java?
    How can you check if a String is a number by using regular expression?

Share This

0 comments: