Java
Description: Concept based questions | |
Number of Questions: 15 | |
Created by: Mohini Tyagi | |
Tags: Concept based questions Java Basics |
How many constructors are there of ArrayList class in Java?
Which of the following methods is present in the Stack class in Java Collections framework?
Which of the following methods is present in LinkedList class in Java Collections?
Which of the following methods is/are static in Collections class?
Which of the following methods are present in the queue interface?
Which of the following methods is/are not present in Vector class in Java Collections framework?
What is the initial capacity of vector?
Which of the following methods in Collections class is not static?
Which of the following methods is present in ListIterator interface in Java Collections?
Which of the following methods is/are defined in String class for comparing strings?
How many constructors are there of Vector class in Java Collections framework?
Which of the following methods is present in Vector class in Java Collections framework?
What will be the output of the given code?
String s = “Welcome To Java” s.substring(4, 4);
What will be the result of the following code?
String s = “Welcome To Java”; s.charAt(s.length());
What will be the output of the given program? class BitShift { public static void main(String [] args) { int x = 0x80000000; System.out. print(x + and) ; x = x >>> 31; System.out. println(x); } }