File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Java IO package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Java IO package" Watch "Java IO package" New topic

Java IO package

Dinesh Tahiliani
Ranch Hand

Joined: Aug 06, 2007
Posts: 486
Which can be constructed using


I think it should be 1,2,4,5

Can anyone suggest??

Thanks<br />Dinesh
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
Hey Dinesh,

Part of the intention of the exam is to teach candidates how to use the API documentation. This question should be very easy for you to research...if you've practiced using the API. If you haven't started using the API yet then you might as well start now because you're going to need to learn how sooner or later! Every Java programmer needs to know how to use the API docs!



Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Krishnamoorthy Vuyala Muralidharan
Ranch Hand

Joined: Sep 13, 2005
Posts: 52
Hi Dinesh

What Bert has told is perfectly correct, sooner or later you must start reading the APIs.

If I understood your question correct, then the answers from the below choices:


would be as follows:

1, 2, 3

Some of the Constructors of these classes which takes File as an argument:
FileWriter(File file)

FileReader(File file)

PrintWriter(File file)

BufferedReader(Reader in)

BufferedWriter(Writer out)

karthik damodaran

Joined: Jun 24, 2008
Posts: 3
Hey Dinesh

It s clearly given in API. Just check it out....

Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

What is the source of this question ?

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
I agree. Here's the link:
subject: Java IO package
It's not a secret anymore!