What is a package
1. Think of a package as a folder on your computer.Different folders in the computer will contain related items.A package is a namespace for organizing classes or interfaces that have similar properties.Importance of package is that it allows programmers to focus on the design of a particular application rather than infrastructure needed.
Object-Oriented Concepts in Java Revision Questions.
1. All real-world objects have ____________ and ________
2.________________is a blueprint or prototype that is used to create objects.
3. Objects state is stored ___________________and object behavior stored in __________
4. Programmers use_____________________to hide internal data from outside world and access them through public methods.
5. Related methods grouped together with no implementation i.e with empty bodies is is called _____________
Answers:
1. state and behavior
2. Class
3. fields and methods
4. encapsulation
5.interface.