Saturday 26 November 2016

STATIC KEYWORD

If  a keyword Static is present before a variable or method then it is called as static variable or static method respectively.The keyword static is mainly used for memory management in Java.The variable declared with  static keyword belongs to the class rathar than the object of class .It is also possible to define main() method without the keyword static.

No comments:

Post a Comment