JAVA SET – 2

Welcome to your JAVA SET - 2

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

2. 
this' keyword in java is ___.

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

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

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

6. 
In java, jar stands for_____.

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

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

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

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

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

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

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

14. 
Multiline comment is created using ___.

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

16. 
What are regexes in Java?

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

18. 
What is a deadlock in Java?

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

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

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

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

23. 
Which of the following is false?

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

25. 
The \u0021 article referred to as a

Leave a Reply

Scroll to Top