Ways that the members of a package can be used by other packages - Java

Ways that the members of a package can be used by other packages

There are two ways of affecting access levels.

One, when the classes in the Java platform are used within the developer defined classes, the access levels determine the members of those class which can be used by the developer defined classes.

Two, the access level need to be decided by the developer for the classes or methods defined by him/her.
Explain Java’s delegation event model - Java
The event model is based on the Event Source and Event Listeners. Event Listener is an object that receives the messages / events. The Event Source is any object which creates the message / event...
Describe the assert keyword - Java
The programmer assumes certain code while developing when handling exceptions. For example, a number is passed as parameter to a method and it is to be validated whether it is positive...
Why a native method might be useful? - Java
Java Native methods are useful when an application can not be written completely in Java language. For instance, when a Java application needs to modify an existing application which was developed in another language...
Post your comment