The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Mock Exam Quest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Mock Exam Quest" Watch "Mock Exam Quest" New topic

Mock Exam Quest

Harry Singh
Ranch Hand

Joined: May 02, 2001
Posts: 124
HOw will JVM behave when we code something like this? I know if i uncomment this line then it will give compile time error as then the initialization statement will reduce to
char a = ;
So the compiler yells.. but now as as this statement is commented So why the compiler still complains. As per my understanding, anything within comments will not be looked upon by JVM and i may write or do anything withing comments ?Am i right?

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

I agree. Here's the link:
subject: Mock Exam Quest
It's not a secret anymore!