New course! Every coder should learn Generative AI!
Try a free lesson0
void is used here and still it returns a value,why?
2 Answers
+ 1
Read again. What you think is a return value is probably just a reference.
0
It doesn't "return" a value, it only prints a value,
hence the System.out.printIn