JAVA TEST PAPERS

0%

Time Limit 20 minutes

Maximum Allowed Time Is over

Your Paper Successfully Sent.


coding

Java test

Login Form to take test

1 / 24

public class Solution{
public static void main(String[] args){
int x = 127;
x++;
x++;
System.out.print(x);
}
}

2 / 24

Identify the output of the following program.

String str = “Hellow”;
System.out.println(str.indexOf(‘H));

3 / 24

Identify the modifier which cannot be used for constructor.

4 / 24

Public class Test{
Public static void main(String argos[]){
String str1 = “one”;
String str2 = “two”;
System.out.println(str1.concat(str2));
}
}

5 / 24

Identify the return type of a method that does not return any value.

6 / 24

int ++a = 100;
System.out.println(++a);
what is the output of the following programme?

7 / 24

Select the valid statement to declare and initialize an array.

8 / 24

What is the full form of OOPs

9 / 24

Public class Solution{
Public static void main(String args[]){
Int i;
for(i = 1; i < 6; i++){ if(i > 3) continue;
}
System.out.println(i);
}
}

10 / 24

public class Solution{
public static void main(String[] args){
int x = 10;
x = x * 5;
System.out.print(x);
}
}
what is the output of the programme?

11 / 24

what range of index value you will specify to print the complete name : java coding

12 / 24

String str = “abcde”;
System.out.println(str.substring(1, 3));

13 / 24

if(1 + 1 + 1 + 1 + 1 == 5){
System.out.print(“TRUE”);
}
else{
System.out.print(“FALSE”);
}

14 / 24

Int i = 0;
do{
System.out.println(i);
i++;
} while(i < 10); upto which number i will be printed

15 / 24

Identify the infinite loop

16 / 24

What is the output of the following programme?
int Integer = 24;
char String = ‘I’;
System.out.print(Integer);
System.out.print(String);

17 / 24

Identify the output of the following program.

String str = “Hellow”;
System.out.println(str.indexOf(‘t));

18 / 24

int a = 100;
System.out.println(++a);
what is the output of the following programme?

19 / 24

Int i = 0;
do{
i++;
System.out.println(i);

} while(i < 10); upto which number i will be printed

20 / 24

Exception created by try block is caught in which block

21 / 24

if(FALSE){
System.out.print(“TRUE”);
}
else{
System.out.print(“FALSE”);
}

22 / 24

int a = 100;
System.out.println(a);
int a =++a;
what is the output of the following programme?

23 / 24

Public class Solution{
Public static void main(String args[]){
Int i;
for(i = 1; i < 6; i++){ if(i > 3) break;
}
System.out.println(i);
}
}

24 / 24

Number of primitive data types in Java are?

Your score is

0%

Exit

you can rate the paper on 1 to 5 scale

1 is least liked and 5 is most liked