Why should we use singleton pattern instead of static class?
What types of inheritance does Java support?
How is string immutable in java?
Write a java program to check if a number is prime or not?
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
Can applet in different page/s communicate with each other?
Define iterator and methods in iterator?
What are the difference between string, string builder, and string buffer in java?
is it possible to instantiate the math class?
What is a ternary operator in java? What is an interface?
Why we can not force Garbage Collection?
What is Java Reflection API? Why it’s so important to have?
List the three steps for creating an object for a class?