Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Has Niko forgotten about STM interface in which case the container may choose to create more than one instance of the servlet?
SRV.2.2 Number of Instances
For a servlet not hosted in a distributed environment (the default), the servlet container must use only one instance per servlet declaration
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
STM is deprecated but its still on the exam.. so don't we have to consider that its there..?
but don't you think the answer will depend on the position of servlet where this code is written?
If A or B is String coerce both A and B to String, compare lexically
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Consider Paul's rocket mass heater. |