*
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
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: 8904

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


Groovy
 
 
subject: Mock Exam Quest
 
Similar Threads
Array Questions
Comments //
Polymorphism Problem ?
Assigning a number literal to a char
char literal