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

What is a variable declaration?

515


When a byte datatype is used?

561


Write a program in java to establish a connection between client and server?

503


What is api in java?

530


What are selection structures?

532






Mention a package that is used for linked list class in java.

521


What are different types of encoding?

578


What is hashmap and map?

545


How do you use equal in java?

542


What is singleton service?

500


What about main thread in java?

642


What is formatted output in java?

495


What is skeleton and stub? What is the purpose of those?

535


Explain the importance of throws keyword in java?

561


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

530