Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Arland Smith   on Oct 25 In Java Category.

  
Question Answered By: Paul Brooks   on Oct 25

the output  is
y is 6
a is 9
x is 6
is correct .
u got a method  call before printing the value of x,so first it goes into the
method calla nd perform the necessary operation,in the method foo(int,int) u got
two println  statements for y and a so first it prints them first and then it
prints the value of x,hope u got.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on main method Or get search suggestion and latest updates.


Tagged: