• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

GC Doubts

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 ]
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic