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 is a j2ee component?
What is java ee used for?
What is java technology stack?
What is a java applet?
Who gave the name java?
How do you run a java program?
What id url?
What are the different java technologies?
What is sandbox in java?
What does j2ee stand for?
What is a thin client?
What is jetty in java?
What is j2ee component?
Explain jta, jndi, and jms.
Describe orm?