Tag: java

Questions Related to java

  1. As a CGI script

  2. As an independent process

  3. By one of Tomcat's threads

  4. None of the above is correct.


Correct Option: C
  1. 4K

  2. 2K

  3. 6K

  4. None of the above is correct.


Correct Option: A
  1. _jspService()

  2. jspInit()

  3. jspDestroy()

  4. getParameter()


Correct Option: A
  1. doPost()

  2. doGet()

  3. System.out.println()

  4. System.exit(0);


Correct Option: D
  1. Simple Mail Transfer Protocol (SMTP) implementation in Java.

  2. Java Mail API

  3. Both a and b

  4. Neither a and b


Correct Option: A
  1. depth must be an int

  2. dive must be a method.

  3. dive must be the name of an instance field.

  4. submarine must be the name of a class

  5. submarine must be a method.


Correct Option: B
  1. public void amethod(int s, String i){}

  2. public void Amethod(int i, String s) {}

  3. public void amethod(int i, String mystring){}

  4. None of the above

  5. public int amethod(int i, String s){}


Correct Option: B
  1. Float

  2. None of the above

  3. byte

  4. String

  5. integer


Correct Option: C