void
Keyword
void
keyword allows us to create methods which do not return a value.
ExampleVoid.java (the void keyword) | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
Output: Result: |
Review: Access Modifier |
Default (declared/defined without using any modifier) private protected public
|
Result: |
I’m not a big fan of stairs. They are always up to something. |