What is difference between static class and singleton pattern?
No Answer is Posted For this Question
Be the First to Post Answer
what is meant by Garbage collection?
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 a nested list?
Can we convert integer to string in java?
What are anonymous inner classes?
What is bubble sort in java?
What is api in java?
What is an interoperable application in java ?
In what types of operations an ArithmeticException will be thrown?
I need some details about an employee. i have only the employee id in my presentation layer(JSP).I entered that ID and click "Show Details" Button. Question is how the JSP pass that id to Controller layer and DAO and what mechanism we are using to retrive data from DB and how the data passed to JSP as a Output. Please explain in detail.
What is a class instance variable?
What are the main uses of this keyword?