Why is it useful to be able to add private methods to interfaces?
What will be an ideal response?
A class’s private helper methods may be called only by the class’s other methods. As of Java SE 9, you can declare helper methods in interfaces via private interface methods. An interface’s private instance methods can be called directly (i.e., without an object reference) only by the interface’s other instance methods. An interface’s private static methods can be called by any of the interface’s instance or static methods
You might also like to view...
The default file type used by Apple's iTunes software is ________
A) MP3 B) AAC C) MIDI D) WAV
A technician has deployed multiple temperature monitoring devices with IP addresses in the 10.137.24.0/25 network. Such devices must receive an ICMP keep-alive packet from the server every five minutes. Which of the following destination IP addresses must the technician configure on the server to send keep-alive packets to all the devices?
A. 10.137.24.0 B. 10.137.24.1 C. 10.137.24.127 D. 10.137.24.128