Answer Posted / pooja
a package is nothing but a folder in which there are a
collection of classes and interfaces.
of course it is a folder , a folder which is created
explicitly is not a package .
the keyword used for creation of package is "package"
syntax:package <package_name>;
compilation syntax:javac -d path file_name.java;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a constructor be private and how are this() and super() method used with constructor?
Does garbage collection occur in permanent generation space in jvm?
What is the point of polymorphism java?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is entry set in java?
What is the use of :: in java?
What is class forname?
What is hash in java?
How do I run java on windows?
What is the difference between replace and replace all?
What are the 6 mandatory procedures for iso 9001?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
what is meant by Byte code concept in Java?
What are inner classes or non static nested classes in java?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?