Answer following questions. 1. Draw compilation and interpretation process of Java. 2. Define: Bytecode, Garbage Collector 3. Write syntax of compiling and running a package java program. 4. Write two checked exception and two unchecked exception name. 5. Describe: i) Set ii) Map. 6. Write syntax for iterating using Iterator class. 7. Draw Thread Lifecycle.
Explain Object oriented programming concepts in java.
[7 marks]i) Discuss final keyword used with variable, method and class. ii) Describe default and parameterized constructor with example.
[4 marks]i)Discuss Accessibility of access modifiers in different condition. ii) Explain this keyword and its related concepts with example.
[4 marks]Discuss passing and returning object as parameters with example.
[7 marks]Assume that there are two packages, student and exam. Astudent package contains Student class and the exam package contains Result class. Write a java program that generates mark sheet forstudents.
[7 marks]Discuss concept of variable length argument and overloading variable length argument method with example.
[7 marks]Write a java program to implement multiple inheritance. Also explain the concept implemented.
[7 marks]Explain Custom Exception. Create custom exception named NoBalanceException and throw NoBalanceException with a message when user enters debit amount which makes balance of account less than 500.
[7 marks]i) Create ArrayList, add elements to it, display those elements and remove elements. ii) Explain autoboxing and unboxing with example.
[4 marks]Describe abstract class. Create abstract class called Shape which has three subclasses Triangle, Rectangle, and Circle. Define one method area () in the abstract class and override this method in these three subclasses to calculate for specific object and print the result.
[7 marks]Explain Java Collection Framework with its hierarchy. List and explain methods of Collection interface with its signature and use.
[7 marks]Explain thread synchronization and its need using example.
[7 marks]Describe Generics having one and two type parameters with example.
[7 marks]Explain use of wait, notify and notify all with example.
[7 marks]Explain character stream classes and write program to read a File. 1/1
[7 marks]