is it possible to create single instance of java class per
session in web application
Answer Posted / sk.bilal ahmed
yes
eg.,
Public final class Singleton{
private static Singleton singleton;
public static Singleton getInstance()
{
if(singleton ==null)
{
singleton=new Singleton();
}
retuen singleton;
}
public void getvalue()
{
}
}
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What does j2ee stand for?
What is connector?
What is application client container?
What is group?
What is a java application server?
What are the main components of a class in java?
Why awt is used in java?
What is jetty in java?
Explain the four types of container that the j2ee specification defines
Is a relationship java?
What is jlayeredpane java?
to update a batch in a table in jdbc which method of statement object is used
Who generates bytecode in java?
What is full form of j2ee?
Why is java called technology?