what is static function in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dayanand50
    New Member
    • Mar 2010
    • 1

    what is static function in java

    ii wanted to know what is static function in java and how to declare it
  • anurag275125
    New Member
    • Aug 2009
    • 79

    #2
    static function in java is the function that can be called without creating the object of the class, they can be called by directly referring the class name.

    for example..
    MyClass.functio n()

    instead of
    MyClass obj=new MyClass();
    obj.function();

    Comment

    Working...