Welcome to your JAVA SET - 3

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

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

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

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

5. 
What is a set in Java?

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

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

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

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

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

11. 
Null in Java is ___.

12. 
What is file handling in java?

13. 
 Batch processing in java is ___.

14. 
Wrapper class in java is ___.

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

16. 
What is a map in Java?

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

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

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

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

21. 
Enumeration in Java is ___.

22. 
Abstract class is ___.

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

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

25. 
Boxing is ___.

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply