Should database connections be singleton?


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

Post New Answer

More Core Java Interview Questions

what is singleton in java?

0 Answers   IBS,


Difference between Array and vector?

9 Answers  


What is the difference between abstraction and encapsulation?

0 Answers  


What do you mean by static variable?

0 Answers   TCS,


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

0 Answers  






What are class types in java?

0 Answers  


What is split return?

0 Answers  


public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?

6 Answers  


What is the java idl system?

0 Answers  


Can we serialize arraylist in java?

0 Answers  


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

2 Answers   TCS,


What is jvm? Why is java called the platform independent programming language?

0 Answers  


Categories