Welcome Guest | Sign in | Register
File - Discussion Page For Q.2725 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > File > Questions and Answers

Q: What is the way to create a actual file ?
A. Invoke the createNewFile() method on a File object B. Create a Reader or a Writer or a Stream
C. Both are true D. None of the above

Answer and Explanation

Answer:Both are true

Explanation:
Whenever you create an instance of a FileReader, a FileWriter, a PrintWriter, a
FileInputStream, or a FileOutputStream
classes, you automatically create a file, unless one already exists.

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.