Interview Questions

22 Core Java Interview Questions

Core Java Interview Questions
Written by bakair

 22 Core Java Interview Questions

 

  1. Why the container does not support multiple layout managers?
  2. Which class is the super class for all classes in java.lang package?
  3. What are differences between Enumeration, ArrayList, Hashtable and Collections and How many JVM could be run on an operating system. if only one then what is the logical reason.
  4. What is JVM Heap Size?
  5. How does it affect the performance of the Application?
  6. We know that Object class is super class of every class & a class extends only one class. so How is it possible to a class to extend other than Object class?
  7. What is difference between string and stringtokenizer?
  8. How can you load DLL files when your java class is loading first time ?
  9. If two overloaded methods are – test(Object xyz) and test(Customer cust) [Assume Customer is a class with member name of type String]. Now if we call test(null), which method will be called? why?
  10. When are you using arraylist and linkedlist?
  11. When are you using hashmap and hashtable?
  12. Can we have run() method directly without start() method in threads?
  13. How to use JNI in Java?
  14. What are Struts and Jini?
  15. How to apply native code in Java?
  16. Can we have run() method directly without start() method in threads?
  17. How to use JNI in java? and what are Struts and jini?and how to apply native code in java?
  18. Strings are immutable.But String s=”Hello”; String s1=s+”World”; S.O.P(s1); means printing “HelloWorld”. How ?
  19. What is the difference between classpath and path variable?
  20. If we have two public classes in a single java file, How I have to give the name of the particular java file and How I can compile it?
  21. Is there any difference between Execution Engine and the JIT in java?
  22. How single threaded model works after implementation in class, basically architecture point of view?

About the author

bakair

Leave a Comment