Tag: programming languages

Questions Related to programming languages

  1. Since enums are comparable to traditional classes, they may not be arguments in switch statements.

  2. Enums may not extend another class/ enum.

  3. Enums inherit the java.lang.Object class.

  4. Enums may be extended by another Enum.


Correct Option: A,D
  1. Declare the variable as volatile.

  2. not possible

  3. By java.util.*;

  4. By final keyword


Correct Option: A
  1. Add the List elements to Set

  2. List doesnt allow that

  3. using remove()

  4. none of these


Correct Option: A
  1. Using interface

  2. Class should be declared as private

  3. yes

  4. A class does not inherit constructors from any of its superclasses.


Correct Option: D
  1. MSBuild

  2. NAnt

  3. Ant

  4. Not Possible to build solutions from command line


Correct Option: B
  1. It is used to build .Net Solutions

  2. Its Name is derived from "Not Ant"

  3. Its used to build Java Project

  4. All are correct


Correct Option: C