is it possible to create single instance of java class per
session in web application
Answer Posted / ananth
by using Singleton pattern we can achieve one instance per
class.
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 ? | 7 Yes | 6 No |
Post New Answer View All Answers
What is 'applet container' ?
What is java used for in technology?
What is element?
How do I become a java developer?
What is comment?
Is tomcat a java ee?
What are the types of j2ee clients?
What is application configuration resource file?
What are the modules of j2ee?
Is java still slow?
What are defined as web components?
What is the container?
What is group?
Why is j2ee needed?
What is j2ee component?