-
-
-
-
Database Driver
How to find which type driver used in Java or J2EE applications? Which type used commonly?
-
Overriding Methods
Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile time error, Why?
-
-
-
-
Abstract body
can we declare abstract body ? Explain with simple example and the situation you would use ?
-
Exception
When super class method throws exception then subclass also throws the same Exception, which will compile?
-
-
Final method
having said a final method can be overloaded(default in d same class) plz explain me if there is anything missing in this code ?
class Base {
public final doSomething(Object o) {
System.out.println("Object");
}
}
class Derived extends Base {
public doSomething(Integer i) {
System.out.println("Int"); -
-
-
Dynamic Polymorphism
Write a program for dynamic polymorphism without using method overriding?
-
-
-
Inter Thread Communication
What are all the methods used for Inter Thread communication and what is the class in which these methods are defined?
-
-
Core Java Interview Questions
Ans