Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Round Up game

 
JpShruti Agarwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instance Variables are always assigned default values, if not explicitly assigned one at declaration.

For this Question in the game the answer 'true'

I had marked it 'false', taking the below case-

if the variable is marked 'final' then a default value is not given to it we need to assign one (before itz constructor completes.)
So is 'true' still the right answer?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the JavaRanch forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic