Page 1 of 1

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
by answerhappygod
Question 1 10 Marks State Whether Each Of The Followings Is True Or False About Java A All Variables Are Objects 1
Question 1 10 Marks State Whether Each Of The Followings Is True Or False About Java A All Variables Are Objects 1 (33.11 KiB) Viewed 50 times
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]