• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

who says compiler dont look at me.....

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If u can solve it in one go then preparation for SCJP is on the right track.....
wait for the answer.
Question 2, Chisholm

[ Jess added UBB [code] tags to preserve whitespace, check 'em out! ]
[ February 12, 2004: Message edited by: Jessica Sant ]
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't imagine this kind of thing would ever be on the exam.
Whoever has code that looks like that should be shot (IMHO)
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Harvinder...
I think that you might get a compile time error for lines 12 and 13.Except those lines, Iam sure that there will not be any problems with the rest of the code.
Correct me if Iam wrong.
Thanks
Radha.
 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Harvinder,
I think Radha is correct. it gives compile time error at lines 12 and 13 only.
Will SCJP exam has this sort of Q also?
Vineela
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vineela Devi Jakka:
Hi Harvinder,
I think Radha is correct. it gives compile time error at lines 12 and 13 only.
Will SCJP exam has this sort of Q also?
Vineela


I never had anything like it... I wouldn't worry about it.
 
Harvinder Singh
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Damera and Vineela,
U both are absolutly correct(and u both r on the right track too......:cool U can suppose /*,/**=A
and */=B. Now the compiler is a slow learner. Afer A it will ignore every thing and it will look for the B. So AAAAB is ok but AAABB is not.
And don't worry everyone should thank Mr. Chisholm who is so perfect in making the things difficult . When I saw that question first time I was like :roll: :roll: .
Chisholm u and urs question are really great.If someone is comfortable with urs questions SCJP will be like giving class1 exam after doing the Ph.D !jumpingjoy:
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic