-
Why servlet context is used but not ServletConfig
What is use of the servletconfig
-
-
-
How does an object knows if some change happens in its base class?
For example:
Class A created with method m1() and its object created in various other files. later m1() changed to m2() and class has added some more public variable. Now question is how does object created in other files came to know about this change happened in its class.
Is Object Listener linked to this question??? -
Java.lang.object class methods
List out the five common methods in java.lang.object class?
-
-
-
-
Inter Thread Communication
What are all the methods used for Inter Thread communication and what is the class in which these methods are defined?
-
-
-
Dynamic Polymorphism
Write a program for dynamic polymorphism without using method overriding?
-
-
-
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"); -
-
Exception
When super class method throws exception then subclass also throws the same Exception, which will compile?
-
Abstract body
can we declare abstract body ? Explain with simple example and the situation you would use ?
-
-
Core Java Interview Questions
Ans