Core Java Interview

    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
    4. How many JVM could be run on an operating system. if only one then what is the logical reason.
    5. What is JVM Heap Size? 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? What are Struts and Jini? How to apply native code in Java?
    14. Can we have run() method directly without start() method in threads?
    15. How to use JNI in java? and what are Struts and jini?and how to apply native code in java?
    16. Strings are immutable.But String s="Hello"; String s1=s+"World"; S.O.P(s1); means printing "HelloWorld". How ?
    17. What is the difference between classpath and path variable?
    18. 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?
    19. Is there any difference between Execution Engine and the JIT in java?
    20. How single threaded model works after implementation in class, basically architecture point of view?

No comments: