- Details
- Written by Nam Ha Minh
- Last Updated on 21 August 2019   |   Print Email
In Java, the void keyword is used to indicate a method that does not return any value. For example:
public void doSomething() {
// do something
// no return
}
Related keyword: return. See all keywords in Java.
Other Recommended Tutorials:
About the Author:
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on
Facebook and watch
his Java videos you YouTube.