ALL THE BEST!!!
JAVA-EFC-CHENNAI BATCH2-07TH NOVEMBER 2024
1 / 50
When a finally block executed in Java?
2 / 50
Which of the following is a valid data structure in java?
3 / 50
Which OOP principle is used to hide the internal details of an object and only expose what is necessary?
4 / 50
Which of the following is the correct way to exit from all nested loops?
5 / 50
Which of the following statements is true about nested loops?
6 / 50
Which class in Java is used to take input from the user?
7 / 50
Which type of casting is lossy in Java?
8 / 50
The break statement in Java is used to ______________
9 / 50
Static variables in java are declared as __________________
10 / 50
Which OOP principle helps to reduce redundancy in code by reusing existing classes?
11 / 50
Which of these is true for interfaces in Java?
12 / 50
Which method in java is used to read lines fromfile?
13 / 50
Where are Java source files stored by convention?
14 / 50
What will be the output of the following code?
int i = 0;while (i < 3) {System.out.println(i);i++;}
15 / 50
Which of these is the correct method to create an array in java?
16 / 50
Which method deletes a file in Java?
17 / 50
Which is/are valid method(s) of math library in Java?
18 / 50
BigInteger Class is used to ____________
19 / 50
Which of the following is NOT an application of OOP?
20 / 50
Object in java are __________
21 / 50
Which thread is executed in the background?
22 / 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);}}
23 / 50
Which method is used to convert radians to degree in Java?
24 / 50
In Java, recursion is _____________
25 / 50
What is type casting in Java?
26 / 50
Array in Java is ______________
27 / 50
Which of the following is a valid for loop syntax in Java?
28 / 50
Which of the following is the correct syntax to create a variable inJava?
29 / 50
Which method in Java is used to check for NaN values?
30 / 50
31 / 50
Which of these is a property of threads in Java?
32 / 50
Finally block is attached to?
33 / 50
Which syntax is valid to create a vector in java?
34 / 50
Which command is used to compile a Java program?
35 / 50
Can the Java program accept input from the command line?
36 / 50
Which of the following is a correct example of method overloading?
37 / 50
Multithreading in java is _______________
38 / 50
Which of these is not a valid Boolean method in Java?
39 / 50
Which of the following is NOT a principle of Object-Oriented Programming?
40 / 50
What is the main difference between POP and OOP?
41 / 50
Which programming paradigm does Java primarily support?
42 / 50
What is garbage collection in Java?
43 / 50
public class Main {public static void main(String[] args) {System.out.println(Math.copySign(100.6, -200.6));}
44 / 50
Which of the following can be declared as final in java?
45 / 50
Which method in java is used to generate randomnumbers in Java?
46 / 50
What is stringBuffer in Java?
47 / 50
What is boolean in Java?
48 / 50
After compilation, Java code is converted into:
49 / 50
The correct syntax to import the math library in Java is ______________
50 / 50
What does the java command do?