1. Is “abc” a primitive value? - The String literal “abc” is not a primitive value. It is a String object.
  2. What restrictions are placed on the values of each case of a switch statement? - During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.
  3. What modifiers may be used with an interface declaration? - An interface may be declared as public or abstract.
  4. Is a class a subclass of itself? - A class is a subclass of itself.

click java-interview-questions-and-answers-part-1 to see more interview quesions.


Enter your email address:

Delivered by FeedBurner



Sandeep Joshi
Mathematics, Technology and Programming are my passion. I am a part of Java Ecosystem and through this blog, I contribute to it. I am here to blog about my interests, views and experiences.
I am on Google+ and Facebook.
I feel proud to be listed as a "National Memory Record Holder" in the Limca Book of Records, 2009 and have attempted for an International Memory record in the Guiness Book of Records. I can remember the value of PI upto 10,000 digits after the decimal (3.1415.....). You can contact me on javagenious.com(At)gmal.com ; I would like to hear from you :)