ALL THE BEST!!!
JAVA-EFC-CHENNAI BATCH3-07TH NOVEMBER 2024
1 / 50
Which of these is the correct method to create an array in java?
2 / 50
Array in Java is ______________
3 / 50
Which Java method is used to detect the OS in which the Java program is being run?
4 / 50
What is a set in Java?
5 / 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));}
6 / 50
Multithreading in java is _______________
7 / 50
Which thread is executed in the background?
8 / 50
The trim() method in Java used to ______________
9 / 50
Can we keep a different name for the java class name and java filename?
10 / 50
_____ is used to find and fix bugs in the Java programs.
11 / 50
Finally block is attached to?
12 / 50
Which Java method is used to get the version of running java VM?
13 / 50
Which Java method is used to clear the element of ArrayList?
14 / 50
Which class in Java is used to take input from the user?
15 / 50
Which of the following sorts the elements were inserted?
16 / 50
The break statement in Java is used to ______________
17 / 50
Which of the following methods is used to extract the length of a stringin Java?
18 / 50
Jar in java stands for ____________
19 / 50
Which of the following can be declared as final in java?
20 / 50
Is string mutable in Java?
21 / 50
Which of the following option leads to the portability and security of Java?
22 / 50
Can the Java program accept input from the command line?
23 / 50
Which method is used to convert radians to degree in Java?
24 / 50
What is the entry point of a program in Java?
25 / 50
Which of these is a property of threads in Java?
26 / 50
Which escape character is used for word character in regex?
27 / 50
JRE stands for _______________
28 / 50
What makes the Java platform independent?
29 / 50
Multiline comment is created using ________________
30 / 50
What is the full form of AWT?
31 / 50
Method used to take a string as input in Java?
32 / 50
Which Java method is used to add all of the specified elements to thespecified collection?
33 / 50
What is a map in Java?
34 / 50
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;}}}}
35 / 50
The result of dividing by 0 in Java is _____________
36 / 50
Can the main() method be overloaded in Java?
37 / 50
Which of the following is the correct syntax to create a variable inJava?
38 / 50
Which Java keyword is used to access the features of a package?
39 / 50
Which method in Java is used to get the name of the running Java VM?
40 / 50
Which of these is a type of variable in Java?
41 / 50
What is type casting in Java?
42 / 50
JDK stands for _________________
43 / 50
Which of the following is not a Java features?
44 / 50
What are regexes in Java?
45 / 50
What are the types of memory allocated in memory in java?
46 / 50
Can we write a program without a main method in Java?
47 / 50
What is the default encoding of OutstreamWriter?
48 / 50
public class Main {public static void main(String[] args) {String str = "Hello" ;str = "Bye";
System.out.println(str);}}
49 / 50
Which keyword in Java is used for exception handling?
50 / 50
Which type of casting is lossy in Java?