wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Dan Exam doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Dan Exam doubt" Watch "Dan Exam doubt" New topic
Author

Dan Exam doubt

Vishy Karl
Ranch Hand

Joined: Sep 08, 2003
Posts: 116
Hi All,
I have a doubt, look at the foll. code.

Ans is :-
Prints: 1, 2, 3, 4, 11,
Now my question is where the value returned by the method m being assigned. Should it now throw a compiler error(although i did check by compiling and surprisingly it does not give error) as we are not assigning value returned by function m ?? where it the value returned being asssigned .
thanks in advance,


"The man who can drive himself further once the effort gets painful is the man who will win." <br />Roger Bannister
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

It will be stored in some temp storage (in stack).


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dan Exam doubt
 
Similar Threads
Arrays doubt
Doubt in Declarations
Doubt
doubt
AutoBoxing Doubt