How many ways can we create singleton class?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

How does a for loop work java?

0 Answers  


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.

6 Answers  


Why strings in java are called as immutable?

0 Answers  


Matrix multiplication only using OOP concepts .

0 Answers  


Which methods are used during serialization and deserialization process?

0 Answers  






java program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.

7 Answers   HCL, Wipro,


What is Yield() method when we r using this ? tell exactly

2 Answers  


Explain about join() method?

0 Answers  


What are default methods ?

0 Answers  


What is the exact difference in between Unicast and Multicast object? Where will it be used?

0 Answers  


what are synchronized methods and synchronized statements? : Java thread

0 Answers  


Explain what pure virtual function is?

0 Answers   Aricent,


Categories