Welcome to your JAVA SET - 4
1.
Which is the correct absolute path of a file in Java?
2.
What is type casting in Java?
3.
Which of the following for loop declaration is not valid?
4.
Which of the following creates a List of 3 visible items and multiple selections abled?
5.
Which of the following can be declared as final in java?
6.
Finally block is attached to?
7.
Which of the following inheritance of class is invalid in Java?
8.
Which Java method is used to clear element of ArrayList?
9.
Which Java method is used to add all of the specified elements to the specified collection?
10.
What is polymorphism in Java?
11.
The 'implements' keyword is used to ___.
12.
Which type of casting is lossy in Java?
13.
What is the default encoding of OutstreamWriter?
14.
Which keyword is used to inherit classes in Java?
15.
What will be the output of the following program?
16.
Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
17.
Which method in java is used to read lines from file?
18.
What is the initial quantity of the ArrayList list?
19.
Which statement is correct for private member in Java?
20.
What is meant by the classes and objects that dependents on each other?
21.
Which method is used to add a new line to file in Java?
22.
Which Java method is used to detect the OS in which Java program is being run?
23.
Which method deletes a file in Java?
24.
Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?
25.
Which of the following is a mutable class in java?