06.java Programming Qbank
06.java Programming Qbank
1/CSE
K.S.R. COLLEGE OF ENGINEERING(Autonomous)
Unit-1
JAVA FUNDAMENTALS
TWO MARKS
1. Explain about the Constructors and its type with example program. [Remembering]
2. Write short notes on Arrays with its declaration and with its type. Explain with suitable Program.
[Creating]
3. Explain briefly about the features of java. [Analyzing]
4. List out the operator in Java.write Program and and explain it. [Applying]
5. What is garbage collection.Explain role of Garbage Collection in java[Remembering]
Unit-2
Method Overloading and Inheritance
TWO MARKS
}
}
3. What are the uses of the keyword ‘final’? [Remembering]
The class can be declared as final, if instances or subclasses are not to be created.
The variables are declared as final, value of the variable must be provided at the time of
declaration.
The Method can be declared as final indicating that they cannot be overridden by subclasses.
4. What are static methods? [Remembering]
Static methods and variables can be used independently of any object. To do so, you need only
specify the name of their class following by the dot operator.
5. What is inheritance? [Applying]
In Object-Oriented programming, inheritance refers to the properties of a class being available to
many other classes. A derived class / sub class is one that has been created from an existing class.
Inheritance is the process of deriving a class from a super class or a base class. No changes are made
to the base class. The derived class has a larger set of properties that its base class. Inheritance has
two advantages
a) Reusability of code
b) Data and methods of a super class are physically available to its subclasses
6. What is the use of ‘Super’ Keyword? Give an example. [Remembering]
Usage of ‘super’ keyword’
1. The first calls the superclass constructor
2. To access a member of the superclass that has been hidden by a member of a subclass
7. Difference between method overloading and method overriding in java. [Analyzing]
Overloading Overriding
Private, static and final methods can be Private, static and final methods can not be
overloaded. override.
UNIT-3
Package, Interface and Exception handling
2 Marks
UNIT-4
Multithreaded Programming and I/O Operations
2marks