ALL THE BEST!!!
JAVA-EFC-DELHI-14THAUGUST2024
1 / 50
Encapsulation is ______________
2 / 50
Abstract class is ____________
3 / 50
What is the entry point of a program in Java?
4 / 50
Can the Java program accept input from the command line?
5 / 50
Which of the following methods are present in comparator interface?
6 / 50
Multiline comment is created using ________________
7 / 50
Static variables in java are declared as __________________
8 / 50
Which Java method is used to clear the element of ArrayList?
9 / 50
What is a comparator in Java?
10 / 50
Which Java method is used to convert an object to a string?
11 / 50
Can we write a program without a main method in Java?
12 / 50
Which method in java is used to read lines fromfile?
13 / 50
Array in Java is ______________
14 / 50
JDK stands for _________________
15 / 50
Which of the following is false?
16 / 50
The 'super' keyword is used to ______________
17 / 50
Can the main() method be overloaded in Java?
18 / 50
What is the default encoding of OutstreamWriter?
19 / 50
Which syntax is valid to create a vector in java?
20 / 50
Which of these is a type of variable in Java?
21 / 50
What is a deadlock in Java?
22 / 50
What is type casting in Java?
23 / 50
Can we keep a different name for the java class name and java filename?
24 / 50
The correct syntax to import the math library in Java is ______________
25 / 50
Wrapper class in java is ___________.
26 / 50
What is stringBuffer in Java?
27 / 50
Which keyword in Java is used for exception handling?
28 / 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);}}
29 / 50
Multithreading in java is _______________
30 / 50
Object in java are __________
31 / 50
Which Java method is used to detect the OS in which the Java program is being run?
32 / 50
In which memory a String is stored, when we create a string using new operator?
33 / 50
Which of the following statements is not correct for vectors inJava?
34 / 50
Which class in Java is used to take input from the user?
35 / 50
The break statement in Java is used to ______________
36 / 50
Which of the following methods is used to extract the length of a stringin Java?
37 / 50
What is meant by the classes and objects that dependents on each other?
38 / 50
Which of the following can be declared as final in java?
39 / 50
What is garbage collection in Java?
40 / 50
Which of the following is a valid data structure in java?
41 / 50
The super() method is used to _____________
42 / 50
Which method deletes a file in Java?
43 / 50
What is the use of the intern() method?
44 / 50
Which method in java is used to generate randomnumbers in Java?
45 / 50
Method used to take a string as input in Java?
46 / 50
Which method is used to convert radians to degree in Java?
47 / 50
Boxing is __________.
48 / 50
What are the types of memory allocated in memory in java?
49 / 50
Which of these is the correct method to create an array in java?
50 / 50
public class Main {public static void main(String[] args) {System.out.println(Math.copySign(100.6, -200.6));}