0 of 100 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 100 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1. Who is known as father of Java Programming Language?
2. In java control statements break, continue, return, try-catch-finally and assert belongs to?
3. Which provides runtime environment for java byte code to be executed?
4. What is byte code in Java?
5. Which of the following are not Java keywords ?
6. Which of these having highest precedence?
7. Which of these is returned by operator ‘&’ ?
8. Data type long literals are appended by _____
9.Which variables are created when an object is created with the use of the keyword ‘new’ and destroyed when the object is destroyed?
10. Java language was initially called as ________
11. What is garbage collection in the context of Java?
12. Which one is a template for creating different objects ?
13. Which symbol is used to contain the values of automatically initialized arrays?
14. Which one is true about a constructor ?
15. Which of these operators is used to allocate memory to array variable in Java?
16. Which of these is not a bitwise operator?
17. Which of these is returned by Greater Than, Less Than and Equal To (i.e., Relational) operator ?
18. Which statement transfer execution to different parts of your code based on the value of an expression?
19. Modulus operator (%) can be applied to which of these?
20. What feature of OOP has a super-class sub-class concept?
21. Which of the following are not the methods of the Thread class?
22. Division operator has ____ precedence over multiplication operator
23. What is the full form of JVM ?
24. Which of the following are not Java modifiers?
25. In Java code, the line that begins with /* and ends with */ is known as?
26. Select Odd one out from these about local variables.
27. Which one of the following is Equality operator in Java?
28. Which one of the following is an Unary operator in Java?
29. What is the default encoding for an OutputStreamWriter?
30. What do you mean by >>> operator in Java?
31. Which of the following is not an operator in Java?
32. Which type of the following operators has more precedance in Java?
33. Find the output of below given programming
public class CppBuzz {
public static void main(String[] args){
int a = 5+5*2+2*2+(2*3);
System.out.println(a);
}
}
34.Find the output of below given programming
public class CppBuzz {
public static void main(String[] args){
int a = 10;
System.out.println(a*a–);
}
}
35.Which of the following modifiers can be used for a variable so that it can be accessed by any thread or a part of a program?
36.Find the output of below given programming
public class CppBuzz {
public static void main(String[] args){
int a = 10;
System.out.println(++a*++a);
}
}
37.Find the output of below given programming
public class CppBuzz {
public static void main(String[] args){
int a = 10;
System.out.println(++a*a++);
}
}
38.Find the output of below given programming
public class CppBuzz {
public static void main(String[] args){
int a = 10;
System.out.println(a++*a++);
}
}
39.Find the output of below given programming
public class CppBuzz {
public static void main(String[] args){
int a = 10;
System.out.println(a*a++);
}
}
40.In Iterator, hasMoreElements() method of Enumeration has been changed to:
41.Find the output of below given programming
public class MyClass {
public static void main(String[] args){
int a = 10;
System.out.println(a++++);
}
}
42.Find the output of below given programming
public class MyClass {
public static void main(String[] args){
int a = 10;
System.out.println(++a++);
}
}
43.Find the output of below given programming
public class Main
{
private int a;
public Main(){
}
public Main(int temp){
a = -10;
}
public static void main(String[] args) {
Main obj = new Main();
System.out.println(obj.a);
}
}
44.Find the output of below given programming
public class Main
{
private int a;
public Main(){
a = -10;
}
public static void main(String[] args) {
Main obj = new Main();
System.out.println(obj.a);
}
}
45. Find the output of below given programming
public class Main
{
public static void main(String[] args) {
int arr[] = {‘a’,’b’,’c’,’d’,’e’};
System.out.print(arr);
}
}
46. Find the output of below given programming
public class Main
{
public static void main(String[] args) {
int arr[] = {‘a’,’b’,’c’,’d’,’e’};
for(int i = 0 ; i<5; i++){
System.out.print(” “+ (char)arr[i]);
}
}
}
47. Find the output of below given programming
public class Main
{
public static void main(String[] args) {
int arr[] = {‘a’,’b’,’c’,’d’,’e’};
for(int i = 0 ; i<5; i++){
System.out.print(” ” + arr[i]);
}
}
}
48.Find the output of below given programming
public class Main
{
public static void main(String[] args) {
int arr[] = {1,2,3,4,5};
int count = 0;
for(int i = 0 ; i<5; i++ ){
if(arr[i]%2==0)
arr[i] *= 2;
System.out.print(arr[i]);
}
}
}
49.Find the output of below given programming
public class Main
{
public static void main(String[] args) {
int arr[] = {1,2,3,4,5};
int count = 0;
for(int i = 0 ; i<5; i++ ){
if(arr[i]%2==0)
count++;
}
System.out.print(count);
}
}
50. Arrays is a group of similar type of datatype?
51. What is correct sequence of execution of any Java program?
52. Java has 5 phases, Editing, Compilation, Loading, Verification & Execution. Which of the following unit is responsible for execution?
53.Find the output of below given programming
public class CppBuzz {
public static void main(String args[]) {
int a =10;
String b = “10+10”;
System.out.println(a+b);
}
}
54.Find the output of below given programming
public class Main
{
public static void main(String[] args) {
String str = “1234”;
int a = Integer.parseInt(str);
System.out.println(a);
}
}
55. Can we call non static methods of a class by static methods of a class without creating object?
56.Find the output of below given programming
public class Main
{
public static int sum(int a, int b){
if(a+b>1)
return 0;
System.out.print(a+b);
return a+b;
}
public static void main(String[] args) {
System.out.println(sum(1, sum(0,1)));
}
}
57.Find the output of below given programming
public class Main
{
public static int sum(int a, int b){
if(a+b>10)
return 0;
System.out.print(a+b);
return a+b;
}
public static void main(String[] args) {
System.out.println(sum(1, sum(0,1)));
}
}
58.Find the output of below given programming
public class Main
{
public static int sum(int a, int b){
System.out.print(a+””+b);
return a+b;
}
public static void main(String[] args) {
System.out.println(sum(3, sum(1,2)));
}
}
59.Find the output of below given programming
public class Main
{
public static int sum(int a, int b){
System.out.print(a+””+b);
return a+b;
}
public static void main(String[] args) {
System.out.println(sum(sum(1,2),3));
}
}
60.Find the output of below given programming
public class Main
{
public static int sum(int a, int b){
return a+b;
}
public static void main(String[] args) {
System.out.println(sum(sum(1,2),3));
}
}
61.Find the output of below given programming
public class Main
{
public void sum(int a, int b){
System.out.print(a+b);
}
public static void main(String[] args) {
sum(0,0);
sum(-1,-1);
}
}
62.Find the output of below given programming
public class Main
{
public static void sum(int a, int b){
System.out.print(a+b);
}
public static void main(String[] args) {
sum(0,0);
sum(-1,-1);
}
}
63.Find the output of below given programming
public class Main
{
public static void main(String[] args) {
final int a;
a = 5;
a = 10;
System.out.println(a);
}
}
64. Which of the following option leads to the portability and security of Java?
65. Which of the following is not a Java features?
66. The \u0021 article referred to as a
67. Which of the following is a valid declaration of a char?
68. What is the return type of the hashCode() method in the Object class?
69. Which of the following is a valid long literal?
70. What does the expression float a = 35 / 0 return?
71 What will be the output of the following program?
public class Test {
public static void main(String[] args) {
int count = 1;
while (count <= 15) {
System.out.println(count % 2== 1 ? “***” : “+++++”);
++count;
} // end while
} // end main
}
72. Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?
73. Which of the following creates a List of 3 visible items and multiple selections abled?
74. Which of the following for loop declaration is not valid?
75. Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
76.In which process, a local variable has the same name as one of the instance variables?
77. Which of the following is true about the anonymous inner class?
78. Which package contains the Random class?
79. What do you mean by nameless objects?
80. An interface with no fields or methods is known as a ______.
81. Which of the following is an immediate subclass of the Panel class?
82. TreeSet internally uses that one to store elements?
83. Which option is false about the final keyword?
84. Which of these classes are the direct subclasses of the Throwable class?
85. What do you mean by chained exceptions in Java?
86. In which memory a String is stored, when we create a string using new operator?
87. What is the use of the intern() method?
88. Which of the following is a marker interface?
89. Which of the following is a reserved keyword in Java?
90. Which keyword is used for accessing the features of a package?
91. In java, jar stands for_____.
92. What will be the output of the following program?
publicclass Test2 {
93. Which of the following is false?
94. What is the use of \w in regex?
95. Which of the given methods are of Object class?
96. Which of the following is a valid syntax to synchronize the HashMap?
97. What is the initial quantity of the ArrayList list?
ArrayList list = new ArrayList();
98. Which of the following is a mutable class in java?
99. In character stream I/O, a single read/write operation performs _____.
100.If a thread goes to sleep