Run time Permission

Intermission was added to java.lang by Java 2. It relates to Java’s security mechanism and is not} furtherance here.

Throw able

Throwaway class supports Java’s exception-handling system. and is the class from which all exception classes are derived. It is discussed in Chapter 10.

Security Manager

Security Manager is an abstract class that your sub classes can implement to create a security manager, Generally. you don’t need to’ implement your own security manager. If you do, you need to consult the documentation that comes with your Java “development system.

The Comparable

Java 2 adds a new interface to java.lang: Comparable. Objects of classes that implement Comparable can be ordered. In other words, classes. that implement Comparable contain objects that can be compared in some meaningful manner. The Comparable inter face declares one method that is used to determine what java 2 calls the natural ordering of instances of a class signature of the method is shown here: int compare To(Object ob))

This method compares the invoking object with obj. It returns 0 if the values are equal. A negative value is returned if the invoking object has a lower value. Otherwise, a positive value is returned. This interface is implemented by several of the classes already reviewed in this book. Specifically, the Byte .Character, Double, Float, Long, Shod, String, and Integer classes define a compare To( ) method. In addition, as the next chapter explains, objects that implement this interface can be used in various collections

[vfb id=1]

Share This