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
How many types of modules is defined by j2ee specification?
What is component-managed sign-on ?
Describe the ear, war, and jar.
What is multi tier architecture in j2ee?
Where can I find java developers?
What is caller?
Define hashtable in j2ee?
Is java ee and j2ee same?
Which is latest technology in java?
What is the difference between java and core java?
I Want build and release interview questions
Explain the four types of container that the j2ee specification defines
What is authorization?
What is devops in java?
What is application assembler?