• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mock Exam Quest

 
Harry Singh
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8933
Firefox Browser Java Spring
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!