meaning of void in java language
Void is a keyword and used to specify that a method doesn’t return anything. As method doesn’t return anything, its return type is void . As soon as the method terminates, the java program terminates too. Hence, it doesn’t make any sense to return from method as JVM can’t do anything with the return value of it.