Default Access Modifier in Java:

Package: Packages are folder structure. Packages as the name suggests, is for packing related classes into one group. we write at the beginning of any class file to indicate where exactly that class has to be created. It helps organize our classes into a folder structure and make it easy to locate and use them.Continue reading “Default Access Modifier in Java:”

Java Basic Structure

Java Program : public: public keyword is an access modifier that represents visibility. It means it is visible to all. class: We use class keyword to define the class. Class is a template or blueprint that describes the state & behavior of the object. Collection of object is known as class. It allocates memory forContinue reading “Java Basic Structure”

Design a site like this with WordPress.com
Get started