Define Following terms(any seven) (1) Byte code (2) Scanner class (3) Polymorphism (4) Enum data type (5) “this” keyword (6) Concrete class (7) Garbage Collection (8) Shadowing Variable
[7 marks]Explain any two of followings with the help of example. 1. If….else if…..else 2. Switch case 3. While loop
[7 marks]Explain static block and class initialize block with example.
[7 marks]Why Java’s main () method is public, static and also has one argument?
[7 marks]What is Exception? Explain exception handling by creating custom exception class.
[7 marks]What is package? Explain “java.util” package with example.
[7 marks]What is method overriding? Explain with example.
[7 marks]Explain abstract, final and static keyword with example.
[7 marks]What is an interface? What role does an interface play in multiple inheritances? Explain with example.
[7 marks]What is collection framework? Discuss Map interface with example.
[7 marks]What is difference between Vector and ArrayList? How the Enumeration interface is useful in Java explain with Example?
[7 marks]Explain widening, narrowing, boxing and unboxing conversion with example.
[7 marks]What is thread? How many ways thread can be created in java? Write down steps for creating thread.
[7 marks]What is generic class? Explain generic method with example.
[7 marks]What is Stream? Explain different types of stream.
[7 marks]Create a class “Vehicle” with instance variable vehicle_type. Inherit the class in a class called “Car” with instance model_type, company name etc. display the information of the vehicle by defining the display() in both super and sub class.
[7 marks]