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
Describe orm?
What is jbutton in java?
What is pure java?
What is element?
Is java important for my computer?
What are the j2ee technologies?
What is context root?
What is application configuration resource file?
How do you make a class immutable in java?
J2ee is a container centric architecture. Explain.
What is application component provider?
What is application client container?
What are the components of j2ee?
What is j2ee api?
What is java 2 platform, micro edition (j2me)?