How can we make a class singleton?
No Answer is Posted For this Question
Be the First to Post Answer
Explain notify() method of object class ?
What is the default value of local and global variables?
What is a boolean structure?
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.
java is pure object-oriented programming language?why it is platform independent.
Is it possible to specify multiple jndi names when deploying an ejb?
what is server side caching?
According to java operator precedence, which operator is considered to be with highest precedence?
how to compile jsp?
What's the difference between comparison done by equals method and == operator?
What is string syntax?
What do you mean by inner class in java?