What is difference between local variable and global variable?


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

Post New Answer

More Core Java Interview Questions

What happens if I remove static from main method?

0 Answers  


What is a vector in java?

0 Answers  


what is use of marker interface? give me good example?

2 Answers  


interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?

2 Answers  


Why java uses the concept of the string literal?

0 Answers  






Can we call virtual funciton in a constructor ?

0 Answers   XX,


can any one tell me what is advantage of encapsulation

2 Answers  


What is hashtable and explain features of hashtable?

0 Answers  


How many bytes is a string in java?

0 Answers  


How can you sort dates?

2 Answers   TCS,


What is byte code and why is it important to java’s use for internet programming?

0 Answers  


Explain the pointers in Java?

0 Answers   Aspire,


Categories