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 web technologies?
What is j2ee technology?
What is the build file?
What is pure java?
What is front end technology in java?
What is ear file?
Is string a primitive data type in java?
What is the difference between load() and get()?
What is containers in java?
What is included in j2ee?
Define authorization constraint?
i want test pattern of zylog company and some examples also
How long does it take to master java?
What are the main components of the j2ee application?
What is caller principal?