List of usage examples for java.lang Package isSealed
public boolean isSealed(URL url)
From source file:Main.java
public static void main(String[] args) { try {// w w w . j a v a 2s.c o m // get the java lang package Package pack = Package.getPackage("java.lang"); // check if this package is sealed URL url = new URL("http://www.oracle.com"); System.out.println("" + pack.isSealed(url)); } catch (MalformedURLException ex) { ex.printStackTrace(); } }