Back to Browse

Method without Passing Arguments in Java explained in Tamil #javaprogramming #tamilexplanation

47 views
Nov 9, 2024
3:23

In Java, you can define a method that doesn’t take any arguments by simply declaring it without parameters in its parentheses. For example, a method named greet could be defined as public void greet(). This method can be called without passing any arguments, like so: greet(). It might perform a specific action or use internal class variables instead of relying on inputs. Methods without parameters are useful when the operation doesn’t require external data, making them straightforward and reusable within the class.

Download

0 formats

No download links available.

Method without Passing Arguments in Java explained in Tamil #javaprogramming #tamilexplanation | NatokHD