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
How do I become a java developer?
What are the topics in j2ee?
What is delegation?
Is tomcat a java ee?
Is j2ee and jee same?
What are the components of awt in java?
What are the components of J2EE application?
Is string a primitive data type in java?
What is java j2ee developer?
What does resource adapt module contain?
What are j2ee components?
Describe the file types *.ear, * .jar and *.war?
What does java awt stand for?
to update a batch in a table in jdbc which method of statement object is used
What are the j2ee technologies?