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
what is encapsulation in java? Explain
What is the difference between access specifiers and access modifiers in java? 16
Do you know why doesn't the java library use a randomized version of quicksort?
What are pass by reference and pass by value?
Why vector is used in java?
Can java arraylist hold different types?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
What is the advantage of functional interface in java 8?
Why java uses the concept of the string literal?
Why deletion in linkedlist is fast than arraylist?
Is double bigger than float?
What is the full meaning of java?
What is nan in java?
How would you convert bytes to string?
Can a hashset contain duplicates java?