How does Tomcat execute a JSP?
As a CGI script
As an independent process
By one of Tomcat's threads
None of the above is correct.
The Maximum Length Of The Session Id(Length Identifier) Is ___________
4K
2K
6K
Following method(s) cannot be overridden in the JSP page.
_jspService()
jspInit()
jspDestroy()
getParameter()
The session tracking in the JSP can be done by :-
1,3,4 only
2,3,4 only
1,2,4 only
1,2,3,4
Calling of which of the following method causes unpredictable results in the Servlet.
doPost()
doGet()
System.out.println()
System.exit(0);
Some Operating Systems have a limitation on the Max Length of the URL, which are normally _______ characters.
255
225
264
250
The mails can be send from the Servlet by the usage of the following :-
Simple Mail Transfer Protocol (SMTP) implementation in Java.
Java Mail API
Both a and b
Neither a and b
You read the following statement in a Java program that compiles and executes.
submarine.dive(depth);
What can you say for sure?
depth must be an int
dive must be a method.
dive must be the name of an instance field.
submarine must be the name of a class
submarine must be a method.
Given the following class definition, which of the following methods could be legally placed after the comment //Here public class Rid{ public void amethod(int i, String s){} //Here }
public void amethod(int s, String i){}
public void Amethod(int i, String s) {}
public void amethod(int i, String mystring){}
None of the above
public int amethod(int i, String s){}
Which of the following are primitive types?
Float
byte
String
integer