Answer the Following 1. Java is platform independent. (True / False) 2. Object o; The above statement creates an object or a reference? 3. Array is a primitive data type. (True / False) 4. Name a Collection that stores data as key value pairs. 5. Runnable is an interface. (True / False) 6. An interface can inherit from a class. (True / False) 7. Class initializer block is executed before initializer block. (True / False)
[7 marks]Explain why is JAVA popular with appropriate reasons.
[7 marks]What is Encapsulation with respect to object oriented programming? Explain how does it help in achieving Abstraction using proper example.
[7 marks]List all the primitive data types. Explain each of them in one line. Also explain the relationship of sub-type and super-type of primitive data types using diagram.
[7 marks]Explain how arrays can be declared. Also explain using diagram how are two dimensional arrays stored in memory.
[7 marks]How can interfaces be used to solve the ambiguity in case of multiple inheritance? Write proper code to explain.
[7 marks]1. Explain boxing conversion with respect to Wrapper classes. 2. What is use of static import. Explain using example.
[3 marks]What are the uses of Comparable and Comparator interfaces? Differentiate between the Comparable and Comparator interfaces.
[7 marks]1. Method overloading is which type of polymorphism. Explain compile time polymorphism. 2. Explain the equalsIgnoreCase, substring and compare methods of String class.
[3 marks]Draw the hierarchy diagram of top level exception classes. Differentiate between checked and unchecked exceptions.
[7 marks]Where is Collection framework used? Discuss the Set and List interfaces with example.
[7 marks]What is the usage of exceptions in Java. Discuss the try, catch, finally using proper code.
[7 marks]What are the benefits of using generic type while using collections in JAVA? Can we ignore providing generic type while instantiating objects?
[7 marks]Explain the purpose InputStream, Reader, OutputStream and Writer classes.
[7 marks]What is a thread? Explain the steps of creating a thread using Runnable interface. OR1
[7 marks]Explain the Object streams? Why is serialization necessary in case of using object streams?
[7 marks]1. Explain the different states of a thread. 2. What is a daemon thread. Give one example of a daemon thread.
[3 marks]