Is void is a keyword in Java?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the International Seabed Authority, Lives in Kingston, Jamaica.
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. ... However, calcSquare() will not be void because it does return a value.
2023-05-11 14:09:54
评论(499)
Helpful(122)
Helpful
Helpful(2)

Amelia Taylor
QuesHub.com delivers expert answers and knowledge to you.
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. ... However, calcSquare() will not be void because it does return a value.