Static Modifier in Java.

In this article,Static Modifier in Java is explained in detail with examples.
This modifier can be used in four situations
  • Data-members.
  • Member-Methods.
  • Static Block.
  • Classes-Related to nested class.
i)Static data-Members.
These data members are those data members,which are common for all the objects of a class.
Static is the keyword used to declare them.

Public Static Void main(String args[]).

In this article,Public Static Void main(String args[]) is explained in detail with examples.
Public
Is an access modifier, it allows JVM to call main() outside the class from operating System command prompt.
Static
JVM calls main(), when a class is executed. It means without creating an object of our class JVM is invoking main() directly.Hence it is static.
Void
It indicates return type, the main method doesn't return any value back to JVM after execution.
main()

Nested Classes in Java.

In this article, Nested Classes in Java are explained in detail with examples. you will come to know about what are nested classes in Java,how they are classified and structure of each type, with the example.
Defining a particular class inside an another class is known as "nested-class".
Ex
class A
{
class B //nested class
{
------
-----
}
}

JVM Architecture.

In this article,JVM Architecture is explained in detail with examples.
JVM Architecture-Javaform

Inheritance in Java.

In this article,Inheritance in Java is explained in detail with examples.
Acquiring the properties and behaviours of an existing class into a new class is known as "inheritance in Java".
Ex
Inheritance in Java-javaform

Connect with Us by Subscribing here for more Updates..!

* indicates required