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