Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Do We Need a Console Class?  RSS feed

 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm studying the Console class for the OCPJP 6 exam. K&B says that the Console class was added to the exam for Java 6.

I don't see why we need the console class. It seems to be a combination of System.in and System.out. Why not just use the System class. Why is the console class so important that it was added to the exam?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!