Tag: programming languages

Questions Related to programming languages

  1. VAR statement

  2. VARNUM Option

  3. Variables Statement

  4. all of the above


Correct Option: A
  1. Iterpreted Language

  2. Compiled Language

  3. Byte Code Language

  4. None of these


Correct Option: D
  1. static because it has to be constant and cannot be changed.

  2. static because it has to be loaded by the JVM without instantiating it

  3. public because other classes may also call the main method of a class

  4. public because JVM has to have access to the main method in order to call it.


Correct Option: B,D
  1. static public void main(String []args)

  2. public static void main(String heyhey[])

  3. public static int main(String[] args)

  4. public static void main(String ...args)

  5. public static void main (String [], int argv)


Correct Option: A,B,D
  1. all sub-classes of Throwable

  2. not the sub classes of RuntimeException

  3. all sub-classes of Error

  4. None of these


Correct Option: B

int i=5; int a = + --i/2.0;

  1. Does not compile saying binary operator has invalid use

  2. 2.0

  3. 2.5

  4. exception will be thrown


Correct Option: B