• 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

Compilation failures and the exam

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have noticed that I cannot differentiate between {} (curly brackets) and () (parenthesis) because of my eyesight. As many questions have 'compilation failure' as the answer, am I right in saying that the failure is NEVER anything to do with missing matching closures or
deliberate mixing of parenthesis and curly brackets. It is always testing some knowledge point and is to to do with aspects like missing imports, wrong use of generics, using keywords as method names, calling non-static member from static context, not handling a checked exception etc. That is 'compilation error' is checking knowledge of the language and not trying to trick you by eliminating matching brackets. However I do understand that the indentation may be deliberately misleading occasionally.

I hope this advice doesn't breach the non-disclosure agreement.
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[Ankit: Please check your private messages for some administrative matter]
 
Shailesh Phatak
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think you should not worry about the parenthesis and curly braces normally but pay little attention for inner class program
 
Rajeev Trikha
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Shailesh. Inner class bracketing is part of language knowledge so I understand the need to work out its scope.

I have never come across the brackets mismatch problem in any simulator but just want to be absolutely sure.
 
reply
    Bookmark Topic Watch Topic
  • New Topic