MINOR -1 JAVA
1. What is inheritance? Explain the types of inheritance in Java with
examples.
2. Explain Java buzzwords, and how do they reflect Java's design
philosophy?
3. Explain the control statements in Java.
4. What is a constructor in Java? Describe the purpose of constructors and
explain the different types of constructors with suitable examples.
Discus constructor overloading with examples? Discus about final key
word with example programs?
5. Explain how to define a package in Java. Discuss the role of
CLASSPATH and access protection in packages.
6. Explain the concept of importing packages in Java. Illustrate your answer
with examples using both built-in and user-defined packages.
7. Define interfaces in Java. How are they declared and implemented?
Explain with examples.
8. Illustrate the use of the super keyword in a Java program With Example.
9. . With a neat diagram, describe the exception hierarchy in Java. Explain
checked and unchecked exceptions with examples.
10. Develop a program in Java to demonstrate the creation of a user-defined
exception subclass. Explain how it is different from built-in exceptions.