-
-
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?
-
-
-
-
Java.lang.object class methods
List out the five common methods in java.lang.object class?
-
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??? -
-
-
Why servlet context is used but not ServletConfig
What is use of the servletconfig
-
Path and classpath
What is the main difference between path and classpath in java language?
Core Java Interview Questions
Ans