Back to Browse

static method in java tamil explanation #javaprogramming #tamilexplanation

27 views
Nov 7, 2024
4:39

In Java, a static method is a method that belongs to the class rather than any specific instance of that class. Declared with the static keyword, it can be called directly using the class name without creating an object of the class, like ClassName.methodName(). Static methods are often used for utility or helper methods that perform tasks independent of any instance, such as mathematical calculations (e.g., Math.pow()) or accessing and modifying static variables. Because static methods do not operate on instances, they cannot directly access non-static (instance) variables or methods within the class.

Download

0 formats

No download links available.

static method in java tamil explanation #javaprogramming #tamilexplanation | NatokHD