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

What is double checked locking in singleton?

604


What is oop in java?

522


Can we have more than one package statement in the source file?

636


What is meant by javabeans?

611


What is the difference between a method and a procedure?

541






How do constructors use this() and super()?

542


What is a jit compiler?

632


Can we convert stringbuffer to string?

561


What is sleep method?

619


What is the difference between length and length() method in java?

638


What is the difference between inheritance and encapsulation?

592


When parseint method can be used?

535


What does the “final” keyword mean in front of a variable? A method? A class?

541


What is application system?

498


Can we have any code between try and finally blocks?

556