|
INTERVIEW QUESTIONS
J2EE
JAVA
DETAILS
Question: How single threaded model works after implementation in class, basically architecture point of view.
Answer: The Single Thread Model is an interface which is used to indicate that only a single thread will execute the service( ) method of a servlet at a given time. It defines no constants and declares no methods. If a servlet implements this interface, the server has only two options. 1st, it can creat several instances of the servlet. 2nd, it can synchronized access to the servlet.
|
|
|
Category |
Java Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 8863 users |
Added on |
7/16/2011 |
Views |
66763 |
Rate it! |
|
|
Question:
How single threaded model works after implementation in class, basically architecture point of view.
Answer:
The Single Thread Model is an interface which is used to indicate that only a single thread will execute the service( ) method of a servlet at a given time. It defines no constants and declares no methods. If a servlet implements this interface, the server has only two options. 1st, it can creat several instances of the servlet. 2nd, it can synchronized access to the servlet. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Is there any difference between Execution Engine and the JIT in java?
|
View Answer
|
|
If we have two public classes in a single java file ,how i have to give the name of the particular java file and how i can compile it?
|
View Answer
|
|
What is the difference between classpath and path variable?
|
View Answer
|
|
Strings are immutable.But String s="Hello"; String s1=s+"World"; S.O.P(s1); means printing "HelloWorld".How ?
|
String s1=s+"World"; S.O.P(s1); means printing - Java Interview Questions & Answers">
View Answer
|
|
What is the difference between interrupt() and join() in threads?Give an example program?
|
View Answer
|
|
Why there is no guarentee for System.gc() method will perform garbage collection for a particular time?
|
View Answer
|
|
Please Give me an example for User defined Exception
|
View Answer
|
|
what are the other ways to prevent a class from being subclassed.one way is to declare the class final. does declaring a class private prevent it from being subclassed?
|
View Answer
|
|
What is default Buffersize of any Bufferedclass?
|
View Answer
|
|
What is working of bean in EJB
|
View Answer
|
|
What is the notation for matrix in java?
|
View Answer
|
|
Tell me the differences between enumeration and iteration?Which can use where in realtime?
|
View Answer
|
|
How to create own Marker Interface with example
|
View Answer
|
|
In which case i can go for Anonymous class?
|
View Answer
|
|
What is collction framework?How it is working?Explain
|
View Answer
|
|
Threading : - How can you pass data between two threads?
|
View Answer
|
|
What are the Differences between Tread class and Runnable ?
|
View Answer
|
|
Can i limit the initial capacity of vector in java?
|
View Answer
|
|
Why default constructor of base class will be called first in java?
|
View Answer
|
|
How can we write our own arraylist without using collections?
|
View Answer
|