0% found this document useful (0 votes)
73 views

Java-Question Bank-Mid-1

This document contains questions divided into three units related to Java programming concepts. Unit 1 covers Java fundamentals like object-oriented programming principles, arrays, constructors, inner classes, and basic data types. Unit 2 focuses on inheritance, polymorphism, abstract classes, interfaces, packages and method overloading and overriding. Unit 3 is about exception handling in Java including checked and unchecked exceptions and how to handle exceptions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views

Java-Question Bank-Mid-1

This document contains questions divided into three units related to Java programming concepts. Unit 1 covers Java fundamentals like object-oriented programming principles, arrays, constructors, inner classes, and basic data types. Unit 2 focuses on inheritance, polymorphism, abstract classes, interfaces, packages and method overloading and overriding. Unit 3 is about exception handling in Java including checked and unchecked exceptions and how to handle exceptions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIT-1

1. List and explain java buzzwords. Which factors are making java famous language?
2. What is the role and responsibility of JVM in program execution?
3. What is the purpose of constructors in java programming?
4. Explain the importance of anonymous inner class with an example.
5. Define the basic characteristics of object-oriented programming.
6. Write a java method to find minimum value in given two values.
7. Why constructors do not have any return type? Explain it with proper example.
8. Illustrate the use of inner classes with an example program.
9. Demonstrate Constructor overloading with an example program.
10. What is an array? How do you declare the array in java? Give examples.
11. Describe the different data types used in Java.
12. Explain the importance of anonymous inner class with an example.
13. Explain the use of ‘this’ keyword with an example.
14. What is constructor? Explain constructor overloading with an example program.
15. Differentiate between a class and object.
16. List the primitive data types available in Java and explain.

UNIT-2
1. What is inheritance? Give example.
2. What is abstract class? Give example.
3. What is inheritance and how does it help to create new classes quickly.
4. What is polymorphism? Explain different types of polymorphisms with examples
5. Define a Package? What is its use in java? Explain.
6. Give an example where interface can be used to support multiple- inheritance.
7. Differentiate between interface and abstract class.
8. What is inheritance? Explain different forms of inheritance with suitable program segments
and real-world example classes.
9. What is java package? Explain how to create and access a java package with an example.
10. Differentiate between interface and abstract class with an example
11. What is meant by dynamic method dispatch?
12. Compare and contrast between the overloading and overriding methods with an example.
13. Explain the process of defining and creating a package with suitable examples.
14. Explain different forms of inheritance with suitable program segments
15. Differentiate Method overloading and overriding in Java.
16. Explain access modifiers used in java.

UNIT-3
1. What is exception handling? How is an exception handled in java?
2. Write a java program to handle Arithmetic Exception.
3. Define and distinguish between checked and unchecked exceptions.
4. What is the importance of exception handling in java? Explain java built-in exceptions.
5. Explain the terms we use in Exception Handling using Java.

You might also like