What is a package? give an example {with reference to java}
Home
/
Computer Science
/
What is a package? give an example {with reference to java}
What is a package? give an example {with reference to java}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
java.applet & java.aet is example.
two type of package:
1.built-in-package.
in java-8 (14-built in package )
java.util (package)
java.lang(default-package)
java.io(package)
so... on 14 package provided by java you can go on jdk->src(folder) to see all built-in package in java...
2. user can also make itself package by using package keyword...
learn through hiearchy
package(top)
/ | \
class interface sub-package
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
all of these contain method.