- 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 began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on
Facebook and watch
his Java videos on YouTube.