- With return type(Value returnதரும்)
With return type tel as tha what kind of value function give bake after it
Runs
Example. a=5 ,b=2
int add(int a,int b){
System.out.println(a+b);
return (5+2);
- without return type=(value return தராது)
kind of value function does not give bake any value
Example
public void hello(){
System.out.println("Hello")
Top comments (0)