void keyword in java

The “void” keyword can be used as the return type of a method to indicate that the method does not return a value. Example: 1 2 3 4 5 6 7 8  public class Employee  {       public void greeting(String name);       {             System.out.println("Welcome to […]

Share this article on