Should database connections be singleton?
No Answer is Posted For this Question
Be the First to Post Answer
what is singleton in java?
Difference between Array and vector?
What is the difference between abstraction and encapsulation?
What do you mean by static variable?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What are class types in java?
What is split return?
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?
What is the java idl system?
Can we serialize arraylist in java?
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?
What is jvm? Why is java called the platform independent programming language?