Explain the notion of package access in Java. Explain the negative aspects of package access.

What will be an ideal response?


Package access allows a class, method, or variable to be accessible within the same package. Package access does not promote good OOP when applied to an instance variable because it destroys the notion of information hiding.

Computer Science & Information Technology

You might also like to view...

Which syntax should you use to sort the result set in reverse alphabetic order.

A. ORDER ON [Column Name] Z-A B. SORT REVERSE BY [Column Name] C. SORT ON [Column Name] REVERSE D. ORDER BY [Column Name] DESC

Computer Science & Information Technology

(Sides of a Triangle) Write a program that reads three nonzero double values and deter- mines and prints whether they could represent the sides of a triangle.

What will be an ideal response?

Computer Science & Information Technology

The first time you save a new document, the ________ dialog box opens

A) Close B) Save C) Save As D) New

Computer Science & Information Technology

Case WD 7-1Meredith is the administrative assistant at a large auto dealership. It is time to send out sales letters to customers who have purchased vehicles at the dealership. Meredith isn't sure where to begin. Which tab contains the mail merge commands?

A. Home B. Insert C. References D. Mailings

Computer Science & Information Technology