This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Please Explain Why Output is so? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Please Explain Why Output is so?" Watch "Please Explain Why Output is so?" New topic
Author

Please Explain Why Output is so?

vishal mishra
Ranch Hand

Joined: Jul 12, 2010
Posts: 103
Namaste !! to all Friends

I have found a question in a document which i have downloaded from the site www.examcertify.com

Question is-:

Output given-:[2, 5, 3, 1]

I have compiled the program and executed it.It is giving the same output.
According to me output should be [5,3,2,1].
Please Explain me Why output is not what i thought...
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42955
    
  73
Let's turn around and ask you: why do you think the output should be [5,3,2,1]?
vishal mishra
Ranch Hand

Joined: Jul 12, 2010
Posts: 103
Thanks !! I got it !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Explain Why Output is so?