Java Interview questions

  1. Can a .java file contain ONLY one Class file ?
  2. What is Operator Overloading ? Is this allowed in Java ?
  3. Why are String objects immutable in java ?
  4. Is String a primitive data type in Java ?
  5. Can you get the memory address of a Java Object ?
  6. What is the default access modifier to a Java Class ?
  7. What is the Object Class in Java ?
  8. How to get OS Dependent new line character in java ?
  9. What is the difference between comparator class and comparable interface ?
  10. Can a Java Class be declared as Private ?
  11. What is the difference between nested classes and inner classes in Java
Advertisements

One thought on “Java Interview questions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s