Answers for "what does void in java mean"

1

void method java

int a = 20;
int b = 20;
public static void sum(){ // Void Method
  System.out.println(a + b);
}
public static int sum(){ // Return Function
  return a + b;
}
Posted by: Guest on June-18-2021

Code answers related to "what does void in java mean"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language