Java - Methods and Code Reusability
Which of the following method signatures correctly declares a method that returns an integer?
int as return type to return an integer value.int and returns 5, which is an integer, so it is correct.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions