• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io package  RSS feed

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am going through java api. While going through java.io package, i found it has dozens of classes. I need to know which classes are used in real world, or rather, which class details a java developer must know.

Thanks
 
Campbell Ritchie
Marshal
Posts: 56562
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are all used in the real world. You don’t have to learn the details of any of them.
You need to know how to find methods, constructors, etc, in the API documentation, and you need to find a tutorial about them. Like this one, for example.
Since many of those methods and constructors declare checked exceptions, you need to know about exceptions, the <> syntax, try-with-resources, etc., too.
It is worth learning when you can get problems with a null reference to a Console.
 
dennis deems
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot depends on the kind of development you're doing. I never use the java.io classes in my day-to-day work.
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Campbell Ritchie, Dennis Deems
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dennis Deems wrote:I never use the java.io classes in my day-to-day work.

Except PrintStream of course . Or are you telling me you don't use System.out and System.err?
 
Campbell Ritchie
Marshal
Posts: 56562
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, he only uses System,in which is an InputStream instance
 
Campbell Ritchie
Marshal
Posts: 56562
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kunal Lakhani wrote:Thanks for your reply Campbell Ritchie, Dennis Deems
You’re welcome
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!