A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Why do you use void in Java?

Best Answers

Void is the Java keyword that tells the compiler that a function will not be returning any value after it is executed. Return is the Java keyword that tells the compiler what will be returned when a function is finished. read more

Yes, you have to specify void to specify that the method doesn't return anything. All methods have to have a return type specified, even if it's void. It certainly doesn't return a string - look, there are no return statements anywhere. read more

The standard format for defining the main method in java is public static void main(String args[]). In order to fully get this, you have to know more about the static methods of java and little bit about the program execution. read more

Encyclopedia Research

Wikipedia:

Related Types

Image Answers

Further Research

void : Java Glossary
mindprod.com

Void and return in Java
stackoverflow.com

What does void do in java?
stackoverflow.com

Shopping Answers