How many static init can you have?
No Answer is Posted For this Question
Be the First to Post Answer
What are the two types of streams offered by java 8?
What is rule of accessibility in java?
why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?
Explain the difference between scrollbar and scrollpane?
What are the advantages of autoboxing?
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?
Explain difference between final, finally and finalize?
What is the same as procedures?
What is serial version uid and its importance in java?
How the elements are organized in GridBagLayout?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
what is main difference between architecture,framework and design pattren