What is local variable and instance variable?
No Answer is Posted For this Question
Be the First to Post Answer
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
Why hashcode is used in java?
is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?
write a progam hashmap & hashtable?
What is keyset in java?
How will you load a specific locale?
What is structure of java heap? What is perm gen space in heap?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
where the static methods will live ,on stack ? can you explain brefly
Infinite loop using while ?
What are mutable classes?
What is comparable and comparator interface? List their differences