What is difference between local variable and global variable?
No Answer is Posted For this Question
Be the First to Post Answer
What happens if I remove static from main method?
What is a vector in java?
what is use of marker interface? give me good example?
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?
Why java uses the concept of the string literal?
Can we call virtual funciton in a constructor ?
can any one tell me what is advantage of encapsulation
What is hashtable and explain features of hashtable?
How many bytes is a string in java?
How can you sort dates?
What is byte code and why is it important to java’s use for internet programming?
Explain the pointers in Java?