JAVA SET – 4

Welcome to your JAVA SET - 4

1. 
Which type of casting is lossy in Java?

2. 
Which Java method is used to add all of the specified elements to the specified collection?

3. 
What is meant by the classes and objects that dependents on each other?

4. 
Which of the following is a mutable class in java?

5. 
Which Java method is used to clear element of ArrayList?

6. 
Which of the following inheritance of class is invalid in Java?

7. 
Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?

8. 
Which of the following for loop declaration is not valid?

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

10. 
 Which statement is correct for private member in Java?

11. 
Which is the correct absolute path of a file in Java?

12. 
 Which Java method is used to detect the OS in which Java program is being run?

13. 
The 'implements' keyword is used to ___.

14. 
Which of the following creates a List of 3 visible items and multiple selections abled?

15. 
What is type casting in Java?

16. 
Which method deletes a file in Java?

17. 
Which of the following can be declared as final in java?

18. 
Which method is used to add a new line to file in Java?

19. 
Finally block is attached to?

20. 
What is the initial quantity of the ArrayList list?

21. 
 Which method of the Class.class is used to determine the name of a class represented by the class object as a String?

22. 
Which keyword is used to inherit classes in Java?

23. 
What is the default encoding of OutstreamWriter?

24. 
Which method in java is used to read lines from file?

25. 
What is polymorphism in Java?

Leave a Reply

Scroll to Top