JAVA SET – 2

Welcome to your JAVA SET - 2

1. 
Which graph is used to check for deadlock in Java?

2. 
What will be the output of following Java code?

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

4. 
The 'super' keyword is used to ___.

5. 
 Which of the following methods is used to extract the length of a string in Java?

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

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

8. 
The \u0021 article referred to as a

9. 
What is the entry point of a program in Java?

10. 
Which of the following statements is not correct for vectors in Java?

11. 
Which of the following methods are present in comparator interface?

12. 
Multiline comment is created using ___.

13. 
What will be the output of following Java code?

14. 
In java, jar stands for_____.

15. 
The super() method is used to ___.

16. 
Which of the following is a valid declaration of a char?

17. 
Which keyword in java is used for exception handling?

18. 
The trim() method in Java used to ___.

19. 
Which keyword is used for accessing the features of a package?

20. 
What will be the output of the following program?

21. 
What are regexes in Java?

22. 
What is the return type of the hashCode() method in the Object class?

23. 
What is a deadlock in Java?

24. 
this' keyword in java is ___.

25. 
Which of the following is false?

Leave a Reply

Scroll to Top