পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Thursday, January 19, 2017

Java.lang.Package Class

Introduction

The java.lang.Package class contain version information about the implementation and specification of a Java package

Class declaration

Following is the declaration for java.lang.Package class:
public class Package
   extends Object
   implements AnnotatedElement

Class methods

S.N. Method & Description
1 <A extends Annotation> A getAnnotation(Class<A> annotationClass)
This method returns this element's annotation for the specified type if such an annotation is present, else null.
2 Annotation[] getAnnotations()
This method returns all annotations present on this element.
3 Annotation[] getDeclaredAnnotations()
This method returns all annotations that are directly present on this element.
4 String getImplementationTitle()
This method return the title of this package.
5 String getImplementationVendor()
This method returns the name of the organization, vendor or company that provided this implementation.
6 String getImplementationVersion()
This method return the version of this implementation.
7 String getName()
This method return the name of this package.
8 static Package getPackage(String name)
This method find a package by name in the callers ClassLoader instance.
9 static Package[] getPackages()
This method get all the packages currently known for the caller's ClassLoader instance.
10 String getSpecificationTitle()
This method return the title of the specification that this package implements.
11 String getSpecificationVendor()
This method return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package.
12 String getSpecificationVersion()
This method returns the version number of the specification that this package implements.
13 int hashCode()
This method return the hash code computed from the package name.
14 boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
This method returns true if an annotation for the specified type is present on this element, else false.
15 boolean isCompatibleWith(String desired)
This method compare this package's specification version with a desired version.
16 boolean isSealed()
This method returns true if this package is sealed.
17 boolean isSealed(URL url)
This method returns true if this package is sealed with respect to the specified code source url.
18 String toString()
This method returns the string representation of this Package.

Methods inherited

This class inherits methods from the following classes:
  • java.lang.Object

No comments:

Post a Comment