Methods from Methods | SoloLearn: Learn to code for FREE!

+3

Methods from Methods

In Python you can make a function that can call other functions, can you do the same thing woth methods in Java.

8/4/2017 3:40:33 PM

Caden Schindler

6 Answers

New Answer

+14

Yes but you can do anything.... This is just an example....

+17

public int method2() { return 1; } public int method1() { return method2(); }

+14

+3

ValentinHacker what is the syntax for it in Java please

+2

so does that just use the return type of the other method

-1

Can't answer