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 does %d do in java?
How do you achieve singleton?
How will you communicate between two applets?
Mention a package that is used for linked list class in java.
Can you have two constructors in java?
How can you set the applet size?
What is mvc in java?
What are different types of states exist for a thread?
What is the difference between an array and an array list?
Which category the java thread do fall in?
Difference between notify() method and notifyall() method in java?
What is difference between fileinputstream and filereader in java?
What is keyword and identifier?
write a program that list all permutations of ABCDEF in which A appears before B?
What are the different types of constructor?