Online Assessment Platform

ALL THE BEST!!!

ALL THE BEST!!!


JAVA-EFC-CHENNAI BATCH3-07TH NOVEMBER 2024

1 / 50

Which of the following methods is used to extract the length of a stringin Java?

2 / 50

Which escape character is used for word character in regex?

3 / 50

What is the default encoding of OutstreamWriter?

4 / 50

Is string mutable in Java?

5 / 50

Which of the following is the correct syntax to create a variable in
Java?

6 / 50

Jar in java stands for ____________

7 / 50

What are regexes in Java?

8 / 50

What makes the Java platform independent?

9 / 50

Which class in Java is used to take input from the user?

10 / 50

Which of these is a type of variable in Java?

11 / 50

The result of dividing by 0 in Java is _____________

12 / 50

JDK stands for _________________

13 / 50

Can we keep a different name for the java class name and java file
name?

14 / 50

Array in Java is ______________

15 / 50

Which of the following option leads to the portability and security of Java?

16 / 50

The break statement in Java is used to ______________

17 / 50

Which Java method is used to clear the element of ArrayList?

18 / 50

Which Java method is used to detect the OS in which the Java program is being run?

19 / 50

What is a map in Java?

20 / 50

What are the types of memory allocated in memory in java?

21 / 50

Which of these is the correct method to create an array in java?

22 / 50

Can the Java program accept input from the command line?

23 / 50

Which Java method is used to get the version of running java VM?

24 / 50

Multiline comment is created using ________________

25 / 50

Which of the following sorts the elements were inserted?

26 / 50

The trim() method in Java used to ______________

27 / 50

JRE stands for _______________

28 / 50

What is a set in Java?

29 / 50

What is type casting in Java?

30 / 50

Which of these is a property of threads in Java?

31 / 50

What is the full form of AWT?

32 / 50

Which method in Java is used to get the name of the running Java VM?

33 / 50

Which thread is executed in the background?

34 / 50

_____ is used to find and fix bugs in the Java programs.

35 / 50

Which of the following can be declared as final in java?

36 / 50

Multithreading in java is _______________

37 / 50

What will be the output of the following Java code?

public class Main {
public static void main(String[] args) {
String str = "Hello" ;
str = "Bye";

System.out.println(str);
}
}

38 / 50

Method used to take a string as input in Java?

39 / 50

What will be the output of the following Java code?

public class Main {
public static void main(String[] args) {
System.out.println(Math.copySign(100.6, -200.6));
}

40 / 50

What is the entry point of a program in Java?

41 / 50

What will be the output of the following Java code?

public class Main {
public static void main(String arg[]) {
int i;
for (i = 1; i <= 12; i +=2)

{ if (i == 8) {
System.out.println(i);
break;
}
}
}
}

42 / 50

Which Java method is used to add all of the specified elements to thespecified collection?

43 / 50

Which keyword in Java is used for exception handling?

44 / 50

Which type of casting is lossy in Java?

45 / 50

Finally block is attached to?

46 / 50

Which Java keyword is used to access the features of a package?

47 / 50

Can the main() method be overloaded in Java?

48 / 50

Can we write a program without a main method in Java?

49 / 50

Which method is used to convert radians to degree in Java?

50 / 50

Which of the following is not a Java features?