what is a package?

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


Please Help Members By Posting Answers For Below Questions

Is nullpointerexception checked or unchecked?

557


What is java developer skills?

516


Can a final variable be manipulated in java?

532


What is indexof?

547


How many bits is a boolean?

622






Is string passed by reference in java?

548


Can you extend singleton class?

602


Is ruby built on java?

535


What are the drawbacks for singleton class?

520


Why does java does not support multiple inheritance? Explain

549


What is main function purpose?

523


Explain scope or life time of local variables in java?

559


How do listeners work?

512


What do you mean by Hash Map and Hash Table?

604


What is locale in java?

578