Do As Directed : 1. _______ is the cosmic super class. 2. What do you understand by Functional interface? 3. null is a keyword in java. [T/F] (With reason) 4. It is not mandatory that a class must be abstract when a method is declared as abstract in java.[T/F] (With reason) 5. Static methods can be called with its ‘this’ reference. [T/F] (With reason) 6. The Constructors of enum type are always private.[T/F] (With reason) 7. What is the use of Varargs in java
[7 marks]1. Find errors (if any), solve errors and write code again. Also give the output of the program. import java.util.*; package p1; public static void main(String ar[]) { int a=50, b=0; int c; try { c=a/b; System.out.println(c); } System.out.println("Hello"); catch(Exception e) { System.out.println(e); } catch(ArithmeticException e) { System.out.println("Divide by Zero...." + e); } } 2. What is difference between ‘==’ and ‘equals()’? Give appropriate example for the same.1
[3 marks]List and explain Java Buzzwords in detail.
[7 marks]Explain Character Stream and Byte Stream. Also write program to copy content of one file to another file with using command line arguments.
[7 marks]1. Explain initializer block and class initializer block in detail. 2. Give difference between abstract class and interface.
[3 marks]1. Explain the concept of thread synchronization in brief. 2. Give difference between String and StringBuffer.
[3 marks]What is multiple inheritance? How multiple inheritance is supported in java? Explain it with suitable example.
[7 marks]1. Explain instanceof and bitwise operator in java by giving a suitable example. 2. Give difference between Comparable and Comparator interfaces.
[3 marks]Explain this, super and final keywords in detail with e.g.
[7 marks]What is thread? Explain thread life cycle in detail with diagram.
[7 marks]What is package? How to create and import packages in java? Explain it with suitable example
[7 marks]What is exception? Explain exception handling mechanism with try, catch and finally blocks. Give Suitable example of custom exception.
[7 marks]Explain enum type in java by giving a suitable example.
[7 marks]What is lambda expression? How to create lambda expressions? Give advantages of Lambda expression. Also give a suitable example.
[7 marks]What is JDBC? Explain types of driver available in JDBC. Write steps of JDBC and MySQL connectivity.
[7 marks]What is generics? What is the use of generics? Also explain how to define generic class with suitable example.
[7 marks]Explain top level nested class and local class in detail with e.g.
[7 marks]