• Post Reply Bookmark Topic Watch Topic
  • New Topic

What will be returned from the following code  RSS feed

 
Yasser Shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What will be returned from the following code and please explain thanks in advance


 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you try it, and then try to explain the result yourself first?
 
Yasser Shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Why don't you try it, and then try to explain the result yourself first?


i tried and 3 was returned ! i want to know why>
 
Lester Burnham
Rancher
Posts: 1337
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think? And what do you know about finally blocks?
 
Roberto Perillo
Bartender
Posts: 2273
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Yasser!

Champ, please take a look here. I think it might be helpful!
 
Yasser Shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roberto Perillo wrote:Howdy, Yasser!

Champ, please take a look here. I think it might be helpful!


answer i want an answer!!
 
Lester Burnham
Rancher
Posts: 1337
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yasser Shaikh wrote:answer i want an answer!

And you'll get it by learning what's going on - which is explained on the page Roberto linked to - ShowSomeEffort.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yasser Shaikh wrote:answer i want an answer!!

This web site's mission is to teach people how to be programmers. Part of that involves learning how to find the answer yourself - or at least trying to. If you follow the link Robert provided, the first sentence really provides you with the answer.

Now, perhaps you read it, and didn't quite understand everything. That's fine. Nobody expects you to understand everything the first (or second, or 20th...) time you read it. But at least show us that you DID read it, and ask a specific question about clarifying something you read.

If all you want is someone to spoon feed you the answer, you're at the wrong website.
 
Yasser Shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:
Yasser Shaikh wrote:answer i want an answer!!

This web site's mission is to teach people how to be programmers. Part of that involves learning how to find the answer yourself - or at least trying to. If you follow the link Robert provided, the first sentence really provides you with the answer.

Now, perhaps you read it, and didn't quite understand everything. That's fine. Nobody expects you to understand everything the first (or second, or 20th...) time you read it. But at least show us that you DID read it, and ask a specific question about clarifying something you read.

If all you want is someone to spoon feed you the answer, you're at the wrong website.


Ok ok I get it... Thank you for your replies and Sorry if I was not showing any efforts(its just that I wanted the answer quickly, as I was preparing for my class test).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!