This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Mock Exam Quest" Watch "Mock Exam Quest" New topic
Author

Mock Exam Quest

Harry Singh
Ranch Hand

Joined: May 02, 2001
Posts: 124
Hi,
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?

Regards,
Harjinder
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

http://www.coderanch.com/t/191310/java-programmer-SCJP/certification/don-it


Groovy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mock Exam Quest