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:  public class Employee  {       public void greeting(String name);       {             System.out.println("Welcome to "+name);              // […]

Share this article on