Which of the following is true?
Correct Answer: Each registered name for a servlet is associated with one instance of the servlet.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Which transaction mode are supported by Enterprise Java Beans?
In generics code, the question mark (?) is called the?
Which code snippets will take transform input string '2012/06/05' to output string '05 - 06 - 2012'?
What exception is thrown by this code, if arr[j]>arr[j+1]: public static void main(String[] args) { int []arr={12,23,43,34,3,6,7,1,9,6}; { int temp; for (inti=0;iarr[j+1]) { temp=arr[j]; arr[j+1]=arr[j]; arr[j+1]=temp; } } } } for(inti=0; i
Which interface makes it possible for Java to save an object to a file and turn it into a data stream?
public class Tester{ static int x = 4; public Tester(){ System.out.print(this.x); // line 1 Tester(); } public static void Tester(){ // line 2 System.out.print(this.x); // line 3 } public static void main(String... args){ // line 4 new Tester(); } } Choose the correct statement. Restriction on static methods are: I. They can only call other static methods. II. They must only access static data. III. They cannot refer this or super in any way.
public class Tester{ static int x = 4; public Tester(){ System.out.print(this.x); // line 1 Tester(); } public static void Tester(){ // line 2 System.out.print(this.x); // line 3 } public static void main(String... args){ // line 4 new Tester(); } } What is the result of compiling and running the following code?
class Base{ private Base(){ System.out.print("Base"); } } public class test extends Base{ public test(){ System.out.print("Derived"); } public static void main(String[] args){ new test(); } } Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.
class Base{ private Base(){ System.out.print("Base"); } } public class test extends Base{ public test(){ System.out.print("Derived"); } public static void main(String[] args){ new test(); } } What is the result of compiling and running the following code?
public class A{ static{ System.out.println("static"); } { System.out.println("block"); } public A(){ System.out.println("A"); } public static void main(String[] args){ A a = new A(); } } What is the output for the below code?