void keyword in java
- 17th Aug 2017
- 0
- 2806
- significance of void keyword in java with an example void keyword in java when to use void keyword in java which keyword in java should not return any value
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); // […]