Harikrishna Gorrepati wrote:I am expecting "false" to be printed because hello() method in callMe() method returns false..The first statement in callMe() method i.e., hello() method should return false and come out of the callMe() method before executing return true at Line 4.
The method hello() finishes its job by returning the value. How do you say that's the finishing point of the callMe() method? If so, what is the point of having the callMe() method? The hello() method simply returns a value to the caller method, but, you don't use that returned value in you caller method. That's all.