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 Valid Question ??? 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 "Valid Question ???" Watch "Valid Question ???" New topic

Valid Question ???

Binu K Idicula
Ranch Hand

Joined: Jul 11, 2002
Posts: 99
Which can be used to accept charS from input.
I was confused by the use of charS , which was not shown as primitive type or an object reference.
Question is just this much. I answered it as and hope I got it wrong.
Do u have any clue ?
Paul Villangca
Ranch Hand

Joined: Jun 04, 2002
Posts: 133
Hi Binu,
I think the question meant 'chars' as 'characters'. Anyway, option (2) is correct, assuming what it meant by 'input' is standard input (
Btw, I think you mean 'hope I got it right
Jacob George
Ranch Hand

Joined: Jun 26, 2001
Posts: 46
I think option 1 is right. The question only asks for a class which could accept charS from input. If the "charS" denotes characters, it means those classes which could take in characters as input. Option 1, ie. CharArrayReader does exactly the explained scenario by accepting a char[] as input. If multiple answers are expected, I will prefer to choose 1,2 and 4, because all these Readers could be used for reading characters. But if this question demands single answer, I would prefer to adhere to option 1.
regards Jacob
[ August 22, 2002: Message edited by: Jacob George ]
Don't get me started about those stupid light bulbs.
subject: Valid Question ???