Tag: programming languages

Questions Related to programming languages

Can we define global methods in a report

  1. True

  2. False


Correct Option: A

Using which section do we implement the Parallel report

  1. Parallel Section

  2. Report Section

  3. Group Section

  4. Sequential section


Correct Option: A
  1. The element will be successfully added

  2. ArrayIndexOutOfBounds Exception

  3. The Vector allocates space to accommodate up to 17 elements

  4. The element will be successfully deleted


Correct Option: A

Which is the data structure used to store sorted map elements ?

  1. HashSet

  2. Hashmap

  3. Map

  4. TreeMap


Correct Option: D
  1. Home Interface

  2. Remote Interface

  3. Bean Class

  4. All


Correct Option: D
  1. the new method should return int

  2. the new method can return any type of values

  3. the argument list of new method should exactly match that of overriden method

  4. the return type of new method should nottch that of overriden method


Correct Option: C

package statictest; public class TestStatic { public static void message() { System.out.println("In message"); } public static void main(String arg[]) { TestStatic a = null; a.message (); } }

  1. Null Pointer exception

  2. In message

  3. Compiler error

  4. No output


Correct Option: B