JAVA SET – 3

Welcome to your JAVA SET - 3

1. 
Which of the following ways is the correct way to create an object in Java?

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

3. 
Which of the given methods are of Object class?

4. 
Abstract class is ___.

5. 
Which of these is a type of variable in Java?

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

7. 
Enumeration in Java is ___.

8. 
What is file handling in java?

9. 
Null in Java is ___.

10. 
Wrapper class in java is ___.

11. 
Which of the following is a valid long literal?

12. 
Boxing is ___.

13. 
"Evaluate the following Java expression, if x=3, y=5, and z=10: ++z + y - y + z + x++"

14. 
How can we access methods for file handling in java?

15. 
What is a set in Java?

16. 
Which of the following sorts the elements were inserted?

17. 
Which of the following is the correct syntax to create a variable in Java?

18. 
What does the expression float a = 35 / 0 return?

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

20. 
Given that Student is a class, how many reference variables and objects are created by the following code?

21. 
What is the use of \w in regex?

22. 
What is a map in Java?

23. 
Method used to take a string as input in Java?

24. 
 Batch processing in java is ___.

25. 
Which of the following is a valid syntax to synchronize the HashMap?

Leave a Reply

Scroll to Top