What is a Java package and how is it used?

Answers were Sorted based on User's Feedback



What is a Java package and how is it used?..

Answer / 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

What is a Java package and how is it used?..

Answer / kumar

package is a related classes,first software companies facing the problem of package creation,in java devolopers using all package names are co-inside.so thats time they are start using
package names our company website names.

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Core Java Interview Questions

What is the difference between a constructor and a method?

0 Answers  


Can we execute a program without main?

0 Answers  


What is the difference between static and non-static variables in java programming?

0 Answers  


Question 6 [9] 6.1 In what situations (in general) would you use a TreeMap? (3) 6.2 In what situations (in general) would you use a HashSet to store a collection of values?

1 Answers  


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,


How does enum work in java?

0 Answers  


what is the difference between HashMap And HashTable?

5 Answers   Hexaware,


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

0 Answers   Amazon,


Is Java a dying language?

0 Answers  


What is the major drawback of internal iteration over external iteration?

0 Answers  


What is the main use of java?

0 Answers  


Which of the following classes will have more memory allocated?

0 Answers  


Categories