packages in java packages in java with example packages in java ppt advantages of packages in java
types of packages in java list of packages in java definition of package in java packages in java with example programs packages in java tutorial advantages of using packages in java what are the advantages of packages in java what are the advantages and disadvantages of packages in java definition of package in java simple definition of package in java define a package in java packages in java pdf
Packages:
In general
to learn any kind of language we have to learn the library effectively. In
order to learn c language, we have to learn its concepts, syntax and library. Library of c
language
is collection of predefined header
files. The header file is collection of predefined
functions. In c software
development, if any function used by many number of programmers
then those
functions are known as common functions and they must into a header file.
In general header files of c, cpp contains common functions
which are meant for common
access.
Similarly in order to learn java language we have to learn
its concepts, syntaxes, oops
features and API.
API Definition:
An
API is a collection of packages.
Definition of
package:
A
package is collection of classes, interfaces and sub packages. A sub package in
terms contains collection of classes, interfaces and sub-sub-packages etc….
Advantages of
Packages:
If we develop any
application by using the concept of packages then we get the following
advantages.
1)
Application development time is very less.
2)
Application execution time is very less.
3)
Application performance is enhanced or improved.
4)
Application memory space is less.
5)
Redundancy of the code is minimized, so that we
can get consistent result and reduced memory cost.
Disadvantages of Packages:
1)
In packages concept we cannot pass parameters to
packages.
2)
Modification in a function or variable value
needs to be reflected in all the functions that use the changed function and
hence the whole package needs to be recompiled.
Difference between inheritance and
Package ?
a)
The concept of inheritance makes us to
understand how to inherit the features within the program between class to
class, interface to interface and interface to class but not across the
programs.
b)
Concept of packages makes us to understand how
to reuse the features with in programs and across the programs between within
the programs and across the programs between class to class, interface to
interface to interface and interface to class.
Types of packages in java
1)
Predefined packages.
2)
User defined packages.
3)
Third party packages.
1) Predefined Packages:
Predefined
packages are those which are developed by sun micro system and
supplied as a part of jdk to deal with universal requirements.
List
Of predefined packages
Predefined packages are classified into
three types they are
i) Jse
(core) packages.
ii) Jee (advance) packages.
iii) Jme (advance) packages.
List of Some JSE packages:
a)
Java.Lang.*;
b)
Java .awt.*;
c)
Java.Applet.*;
d)
Java.Net.*;
e)
Java.util.*;
f)
Java .text.*;
2) User defined packages:
User defined packages are those which are
developed by java programmer and
supplied as a part of their project to deal
with common specific requirements.
3) Third Party Packages:
Third party packages which are developed by
third party software vendors(oracle, ibm
, apache etc….) ant they are used for
dealing with third party software's by the java
programmers.
No comments:
Post a Comment