Tag: web technology

Questions Related to web technology

What is the output for the below code ? public class Test { public static void main(String[] args) { List list = new ArrayList(); list.add(0, 59); int total = list.get(0); System.out.println(total); } }

  1. Compile Properly but Runtime Exception

  2. Compile time error, because you have to do int total = ((Integer)(list.get(0))).intValue();

  3. 59

  4. Compile time error, because can't add primitive type in List.


Correct Option: C

What is the output for the below code ? public class Test { public static void main(String[] args) { Integer i = null; int j = i; System.out.println(j); } }

  1. NullPointerException

  2. 0

  3. Complie with Error

  4. Null


Correct Option: A

What is SOAP ?

  1. Simple Object Access Protocol

  2. Simplified Object Access Protocol

  3. Simplified Object Access Program

  4. Simple Or Advanced Protocol


Correct Option: A

SOAP is language

  1. dependent

  2. sometimes dependent

  3. independent

  4. sometimes independent


Correct Option: C

The first public Working Draft on SOAP was published from W3C in

  1. December 1998

  2. December 2001

  3. November 1998

  4. November 2001


Correct Option: D