Tag: programming languages

Questions Related to programming languages

class A2{ static void doprint(){ System.out.println("A2"); } } class B2 extends A2{ static void doprint(){ System.out.println("B2"); } } public class StaticTest { public static void main(String[] args) { A2 a = new B2(); a.doprint(); } }

  1. A2

  2. B2

  3. Compilation fails

  4. runtime error


Correct Option: A
  1. jsp:forward

  2. jsp:getBean

  3. jsp:param

  4. jsp:getProperty


Correct Option: B
  1. Hashtable.

  2. ListDictionary.

  3. Hybrid Dictionary.

  4. NameValueCollection.

  5. StringDictionary.


Correct Option: E
  1. TRUE.

  2. FALSE

  3. Cant say.

  4. Depends on the valuetype used.


Correct Option: B
  1. Public.

  2. Private.

  3. Protected.

  4. static.

  5. Internal.

  6. ProtectedInternal.


Correct Option: D

A delegate is

  1. A method without code

  2. A method which is called when an event is triggered.

  3. A method which doesnot contain code.

  4. A reference to a method which itself doesnot contain code.


Correct Option: D
  1. BinaryFormatter and SOAPFormatter

  2. BinaryFormatter and XmlSerializer

  3. XmlSerializer.

  4. BinaryFormatter , SOAP Formatter, XmlSerializer


Correct Option: A
  1. After serialization is complete

  2. Before deserialization

  3. After Deserialization is complete

  4. To be called explicitly after serialization

  5. To be called explicitly after Deserialization.


Correct Option: C