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 you compile java?
What is event and listener in java?
Is eclipse written in java?
What is fatal error?
What is java web technologies?
What is callback methods Component methods called by the container to notify the component of important events in its life cycle?
What is j2ee application model?
Enlist the technologies embraced in j2ee?
Define orm and its working in j2ee?
Is tomcat a java ee?
What are the advanced technologies in java?
What is java 2 platform, micro edition (j2me)?
Is advanced java and j2ee same?
What is the mvc on struts?
I Want build and release interview questions