How can Peter accomplish this task?

Peter is writing a Java agent for his application that will need to read data from a text file on the server.

How can Peter accomplish this task?
A . Use the Session class createFile method and use the File class methods to get the data from the file.
B . Use the Session class Open method and use the standard Java IO methods to get the data from the file.
C . Use the Session class createStream method and use the Stream class methods to get the data from the file.
D . Use the Session class getDatabse method, supply the name of the file instead of a database name, and use the Database class methods toread the file.

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments