Java Interview Questions, MCQ, Programs

Rumman Ansari   2020-11-03   Student   TCS Preparation > Job-Preparation   853 Share

In this section we will give you java interview questions, MCQ, Programs. We assure that you will get here the 90% frequently asked interview questions and answers.

The answers to the Core Java interview questions are short and to the point. The core Java interview questions are categorized in Basics of Java interview questions, OOPs interview questions, String Handling interview questions, Multithreading interview questions, collection interview questions, JDBC interview questions, etc.

MCQ Questions

Q. Java is a _________ language.  

 weakly typed
 strogly typed
 moderate typed
 None of these

Answer: 

strogly typed

For more MCQ Questions please click here you will get chapter wise MCQ questions


Define Inheritance?
It is the process where one object acquires the properties of another. With the use of inheritance the information is made manageable in a hierarchical order.

When super keyword is used?
If the method overrides one of its superclass's methods, overridden method can be invoked through the use of the keyword super. It can be also used to refer to a hidden field.

What is Polymorphism?
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.

What is Abstraction?
It refers to the ability to make a class abstract in OOP. It helps to reduce the complexity and also improves the maintainability of the system.

What is Abstract class?
These classes cannot be instantiated and are either partially implemented or not at all implemented. This class contains one or more abstract methods which are simply method declarations without a body.

When Abstract methods are used?
If you want a class to contain a particular method but you want the actual implementation of that method to be determined by child classes, you can declare the method in the parent class as abstract.

What is Encapsulation?
It is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class. Therefore encapsulation is also referred to as data hiding.

For more Java Question & Answer please click here you will get chapter wise Java Question & Answer

More Java Questions & Answer

For Java Programs Question & Answer please click here you will get chapter wise Java Programs

Java Programs