-
J2EE Code Standards
What are the code standard used in J2EE project in real time?
-
Downcasting - Superclass Reference
Explain what is superclass reference to subclass object? Why do we go for downcasting?
-
Garbage Collector
How does garbage collector decide which objects are to be removed? Can garbage collector be forced?
-
Multiple Interface
Why do we need interface concept instead of multiple inheritance? What is the drawback when we use the multiple inheritance?
-
Hashmap and Hashtable
which one is better and faster between hashmap and hashtable? Explain the situation where you would use them ?
-
-
Abstract body
can we declare abstract body ? Explain with simple example and the situation you would use ?
-
-
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"); -
-
Adding Method in Java
Hi
I have interface in that interface 3 methods are there , after some days client said that,i want to add one more method in that interface ,so how can add 4 method so that the implemented class did not affect,
Thanks
Kalins Naik
-
Platform Independence
Why platform independence is needed in real world ?
-
Guess the output of the following program
Try to guess without running the program.
cpublic class IntegerClassExampleThree {
public static void main(String[] javalatte) {
Integer i = 400;
Integer j = 400;
if(i==j){
System.out.println("i==j is equal");
}else {
System.out.println("i==j is not equal");
}
}
}
public class IntegerClassExampleFour... -
Collections
What is the difference b/w 2d array and hashmap?Where we have to use this?Explain ?
Thanks in advance -
-
OOPs Interface
Why interfaces is needed in Java?
-
Increment and Decrements Operators
If int=8 then how to solve ++a+a--*a---a++
-
-
-
Core Java Interview Questions
Ans