This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Cannot resolve symbol... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Cannot resolve symbol..." Watch "Cannot resolve symbol..." New topic
Author

Cannot resolve symbol...

sonir shah
Ranch Hand

Joined: Nov 01, 2001
Posts: 435

I tried running the program but ut gives a compile time error saying that cannot resolve symbol "IOException"..
Can any one explain me ...I feel that 1 should be the output..
Sonir
bill williams
Ranch Hand

Joined: Jan 15, 2002
Posts: 94
did you import java.io.*?


Yet Another SCJP2
sonir shah
Ranch Hand

Joined: Nov 01, 2001
Posts: 435
Oopps!!
sorry Bill.
I dont know why am I not able to figure out such things..and this thing really makes me scared for the exam..
By the way, the output should is 0.
Dont you think it should be 1?
Sonir
bill williams
Ranch Hand

Joined: Jan 15, 2002
Posts: 94
u definetly need some sleep.
of course it is 0.
good luck wiht your test
 
Consider Paul's rocket mass heater.
 
subject: Cannot resolve symbol...