A package is a grouping of related types providing access protection and name space management. Note that types refers to classes, interfaces, enumerations, and annotation types. Enumerations and annotation types are special kinds of classes and interfaces, respectively, so types are often referred to in this lesson simply as classes and interfaces.:Package is a directory of related classes and interfaces.:Packages are Java?s way of grouping a variety of classes / interfaces together.:Package is a collection of .class files and java files:Packages are group of inter-related classes.eg-In math class we can do addition ,subtractionetc.:packages contain combination of methods and classes.there are many packages available ex:util,io,net,awt etc:package is a collection of classes and interfaces.:Package is a collection of classes,methods,interfaces.packages contain sub packages also.In java awt,util,swing,io,net packages are available.:Package is a collection of class files & Java Files. It also has Sub Packages. Package should have the Keyword Package. :Package is way in which we can grouping one or more classes:Package in java it contains collection of class & interface..:package is a logical container that contain logically related classes interface and sub packages.:PACKAGE IS A COLLECTION OF INTERRELATED CLASSES AND INTERFACES.:Generally in a .java file we can keep:1.A package is a collection of java classes and interface:package is a collection of classes and interfaces.Each class have different methods:In RealTime Projects always we have to develop the program by using packages.As u know package contain set of classes and interfaces.:Packages are containers for classes that can be shared by Java programs. Packages are stored in a hierarchical manner and are explicitly imported into new class definitions.:1.A package is a collection of java classes and interface:package is either predefined or user defined. we directly import the available package like we import lang,awt packeges which are available alredy in java. if we want to create a new package for our program then we create it.:Package is a collection of classes and interfaces.:java is platform independent language
Category:Java Interview Questions
No comments:
Post a Comment