What is a Java package and how is it used?

Answer Posted / guest

Package is a separate naming context for the group of
classes and interfaces.It provides a high level layer of
access protection and name space management.Packages can
have access specifiers.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is assembly language a low level language?

503


What is thread safe singleton?

519


How would you format a date in java? I.e. In the ddmmyyy format?

780


What are java threads?

623


Can we execute a program without main() method?

535






What is the difference between static class and normal class?

494


What is the purpose of extern variable?

544


Can we inherit a class with private constructor?

578


Why we use multi threading instead of multiprocessing?

579


Does string is thread-safe in java?

595


How to display all the prime numbers between 1 and 100

509


Explain about narrowing conversion in java?

570


What are different types of encoding?

589


Is string is a data type in java?

593


What does java final mean?

522