A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Error in System.out.println()
Joined: Sep 26, 2007
Mar 12, 2008 01:00:00
I get an error when I try to do the following:
The compiler throws an error at the null part.
But when I check the error, it says
The method println(char) is ambiguous for the type
But I know that one of the signatures for println() is
Then why can't this be right. Please help me.
Joined: May 09, 2007
Mar 12, 2008 01:39:00
Please refer thefollowing link for your doubts,
I agree. Here's the link:
subject: Error in System.out.println()
q from jiris.com
Mock exam question
null pointer exception
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014