Question 1 [10 marks] State whether each of the followings is true or false about Java: (a) All variables are objects. (
Posted: Sun May 15, 2022 11:50 am
Question 1 [10 marks] State whether each of the followings is true or false about Java: (a) All variables are objects. (b) You are allowed to change the value of an attribute of an instance of a final class. (c) Writing a class that extends JFrame class and implements ActionListener interface is the only approach to develop a JFrame application that supports button click event handling. (d) Object created from an existing class which only implements the comparable interface can be saved to a file with method writeObject of class ObjectOutputStream. (e) Program segments that use ResultSet objects make use of a while loop can be replaced by do/while loop. [10]