GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||
GeezerVison is showing www.tutorialspoint.com — Java Package Class
Selected Reading
Java Package ClassIntroductionThe Java Package class contain version information about the implementation and specification of a Java package Class DeclarationFollowing is the declaration for java.lang.Package class − public class Package
extends Object
implements AnnotatedElement
Class methods
Methods inheritedThis class inherits methods from the following classes −
Checking a Package being Sealed ExampleThe following example shows the usage of lang.Object.isSealed() method. In this program, we've checked the java.lang package being sealed or not using isSealed() method and result is printed as false. package com.tutorialspoint;
public class PackageDemo {
public static void main(String[] args) {
// get the java lang package
Package pack = Package.getPackage("java.lang");
// check if this package is sealed
System.out.println("" + pack.isSealed());
}
}
Let us compile and run the above program, this will produce the following result − false Advertisements
| ||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |