The default value of an object reference declared as an instance variable is ________.
- null
- 0
- FALSE
- TRUE
The default value of an object reference declared as an instance variable in Java is "null." When you declare an instance variable for a class, it initially points to no object until you explicitly assign an object to it. "null" signifies the absence of an object reference.
Loading...
Related Quiz
- The ________ method of DatagramSocket class is used to send a packet to a server.
- A ______ event is an event that JavaFX propagates up the scene graph from child to parent.
- What is the major drawback of Linear Search compared to other searching algorithms?
- Which exception might be thrown when opening a file for reading?
- To check whether the socket is bound, the ________ method can be used.