Object Oriented Programming Through Java -Mid1-Impoertant-questions
Object Oriented Programming Through Java -Mid1-Impoertant-questions
In Java, what is the role of the public static void main(String args)
method?
a) Initialization method b) Constructor c) Execution entry point d) Destructor
Defining multiple constructors in a class with different parameter lists is called constructor overloading in
Java.
When an array is passed to a method, what does the method receive the reference of the array
Which return type of a method that does not return any value void
Connecting a method call to the method body is known as Binding The private
Garbage collection in Java is the process by which Java programs perform automatic memory
management.
Scanner s=new Scanner(System.in);is the syntax to create the instance of Scanner class.
Where does the system stores parameters and local variables whenever a method is invoked stack
Java code need to be compiled into byte code before it can be executed.
We need to use the java import keyword which is used to access the package and its classes into the
java program.
Interface is similar to class which is collection of public static final variables (constants) and
abstract methods.
An Exception is a run time error, which occurs during the execution of a program, that distrupts the
normal flow of the program's instructions.
1. List out OOP concepts and Java Buzzwords and explain briefly?
2. Explain various control statements in java?
3. Explain overloading methods and constructors in java?
4. Explain Types of Inheritance in java with Example programs?
5. Name some object oriented programming concepts and explain?
6. Explain method overloading and constructor overloading concept with example?
7. Differentiate between abstract class and interface with suitable example?
8. Define inheritance. Explain different types of inheritances with example?
9. How to create and access a package? Explain with a suitable program and advantages of packages?
10. What is an exception? How are exceptions handled in Java programming? Explain with suitable
program?
11. Describe super and final keywords in java with suitable examples?
12. What are the difference between classes and interfaces and how can we achieve multiple inheritances
in java by using interfaces?
13. What is constructor? What are the types of constructor
14. What is class and define structure give example
15. What is object class and what are the methods of object?