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 java api for xml processing (jaxp)?
What is a java application server?
What is java ee architecture?
What is platform independent in java?
What is javaserver pages (jsp)?
What are j2ee technologies?
What are the components of j2ee applications?
What is empty tag?
What is the latest framework in java?
how to run servlet program between two computer through internet ?
What is j2ee product provider?
Is java ee and j2ee same?
What should a junior java developer know?
Why java is called robust and secure?
Is advanced java and j2ee same?