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


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


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


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



ValentinHacker what is the syntax for it in Java please


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


Can't answer