• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GC Doubts

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From web page


Pls pls expalain.. very confusing..
[ December 12, 2006: Message edited by: Micheal John ]
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you read the answer here? If so, then what do you not understand?
 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For me the output is d. A1A2A3A1A1A2A3.

by calling A other():A1A2A3A1
by calling finalize: A1A2A3

but, they given the output as a,c,d,e...how..?
a.A1A2A3A1
c.A1A2A3A1A2A3
d.A1A2A3A1A1A2A3
e.A1A2A3A1A3A2A1

Why can't we choose only d?

and also in the above pgm, if I replaced the for loop with infinite loop, then A1A2A3A1 this sequence will print infinitely..correct?
[ December 12, 2006: Message edited by: Micheal John ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic