Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why Do We Need a Console Class?

 
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic