The keyword ________ is used to apply restrictions on class, method, and variable.
- final
- private
- protected
- static
The keyword "private" is used to apply restrictions on class members. It restricts access to only within the same class, making it the most restrictive access modifier in Java.
Loading...
Related Quiz
- Imagine a scenario where you need to send a text message over a network using Java. How would you utilize byte streams and character streams to ensure that the message is correctly received and encoded on the other side?
- How can CSS be applied to style JavaFX components?
- Imagine you are developing a real-time multiplayer online game where player data needs to be synchronized. What strategy and technology would you choose for networking communication?
- Which of the following classes is used to write characters to a file in Java?
- The ________ interface of the JDBC API provides cursor support, which allows forward and backward navigation through the result set.