I. What is a class in Java? II. What are subclasses and superclasses? III. What is the advantage of Java over C++? IV. What is the use of separators in java program? V. What is the use of ‘static’? VI. What is type casting? VII. What is polymorphism?
[7 marks]Compare procedure-oriented and object-oriented programming.
[7 marks]What are the features of Java?
[7 marks]Discuss jump statements and their usage.
[7 marks]What is constructor? Explain types of constructor.
[7 marks]Explain inheritance with its type and give suitable example.
[7 marks]Explain Method Overloading and Method Overriding with an example.
[7 marks]Explain how Java achieves encapsulation.
[7 marks]Write a program to demonstrate copy constructor.
[7 marks]Explain the difference between compile-time and runtime polymorphism.
[7 marks]Describe how to create a user-defined exception.
[7 marks]Discuss access control modifiers.
[7 marks]Describe packages and how to create and use them.
[7 marks]Explain thread lifecycle with a neat diagram.
[7 marks]Discuss thread synchronization and inter-thread communication.
[7 marks]Page 1 of
[2 marks]What is Exception in Java? Explain exception handling in Java with suitable example.
[7 marks]Explain file handling using Java I/Oclasses. Page 2 of
[2 marks]