What is local variable and instance variable?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

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.

6 Answers  


Why hashcode is used in java?

0 Answers  


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?

2 Answers  


write a progam hashmap & hashtable?

2 Answers   IBM,


What is keyset in java?

0 Answers  






How will you load a specific locale?

0 Answers  


What is structure of java heap? What is perm gen space in heap?

0 Answers  


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

0 Answers  


where the static methods will live ,on stack ? can you explain brefly

1 Answers  


Infinite loop using while ?

4 Answers  


What are mutable classes?

0 Answers  


What is comparable and comparator interface? List their differences

0 Answers  


Categories