What are the differences between the constructors and methods?
No Answer is Posted For this Question
Be the First to Post Answer
can we overload main method?
How do I compare two strings in word in java?
What are access specifiers available in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
perpare on factorypattern,linklist wothout using collection, (multitharding ie create producer/customer therad producer create Queue continuesly,consumer consume queue, consumer wait if queue is full,producer wait if queue is empty),diff betn sleep(1000)&wait(1000) these r the main Q ask in huawei(2008)
What is meant by class and object in java?
What is a buffer in java?
What will be the initial value of an object reference which is defined as an instance variable?
How to add menushortcut to menu item?
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?
Is set ordered?
What is the super void?