Java Interview Questions


Q:

Why is Java not fully object oriented??

 
A: In order to be fully object oriented a language must support classes,objects,inheritance and polymorphism.
C++ is fully object oriented as it supports all the types of inheritances i.e single,multilevel,multiple,hierarchical and multipath inheritances and if talk about polymorphism, C++ supports static binding and operator overloading which come under static polymorphism.

Java is not fully object oriented

as Java does NOT support operator overloading and multiple inheritances Java supports multiple inheritance through interfaces though.
.

Other important java interview questions

Q:

In How Many Ways can you create an object for a class in java?


Q:

What is the difference betweeen error and exception?


Q:

How to synchronize arraylist?


Q:

Can we create constructor for an abstract class?


Q:

Is it possible to override static method?


Q:

Is it possible to access non-static method from a static method?


Java Interview Questions