Do as directed. 1. What is Java Virtual Machine? 2. Use of this and super keywords. 3. A _________ is a collection of classes and interfaces. 4. Amethod declared with____________modifier cannot be overridden. 5. Define Garbage Collection. 6. Define Comparable and Comparator Interface. 7. What is reference variable?
[7 marks]Explain all concepts of Object-Oriented Programming.
[7 marks]Explain. why Java is popular with all its features.
[7 marks]Explain Datatypes and why it is important.
[7 marks]Explain all Operator with appropriate example.
[7 marks]Explain importance of Constructor. Discuss the overloading of methods and constructors with suitable example.
[7 marks]Explain do while, while and for loop statements.
[7 marks]What is Object class? Explain the hashCode(), equals() and toString() methods of Object class with example.
[7 marks]Write the difference between class, abstract class and interface with JAVA program.
[7 marks]Demonstrate use of Top-level nested classes and Inner classes with suitable example.
[7 marks]Explain the process of creating and using package in java with proper example.
[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 and finally using proper example.
[7 marks]1. Explain life cycle states of Thread. 2. What is a daemon thread. Give one example of a daemon thread.
[3 marks]Explain InputStream, Reader, OutputStream and Writer classes.
[7 marks]Write a program that copies all the content from one file to another. Pass the file names using command line argument.
[7 marks]What is Generic class? Explain it with bounded type parameter.
[7 marks]