Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Question 26 Which of the following statements is used to create an object to write to a file named out.dat? BufferedWriter outfile = new

Java

Question 26

Which of the following statements is used to create an object to write to a file named out.dat?

BufferedWriter outfile = new BufferedWriter(FileWriter("out.dat"));
BufferedWriter outfile = new BufferedWriter (new File("out.dat"));
BufferedWriter outfile = new BufferedWriter (new FileWriter("out.dat"));
BufferedWriter outfile = new BufferedWriter ("out.dat");

Question 27

Which statement is used to create a file object that will append data to an existing file? BufferedWriter salesdata =

new BufferedWriter(new FileWriter("out.dat", false);.
new BufferedWriter(new FileWriter("out.dat", true);.
new BufferedWriter(new FileWriter("out.dat");.
new BufferedWriter(new FileWriter("out.dat", append);.

Question 28

Which class can be used to read data into a text file?

BufferedReader
System
ReadFile
FileRead

Question 29

What information may be obtained from a ResultSetMetaData object?(TCOs 16) What information may be obtained from a ResultSetMetaData object?

Number of columns in the result set
Database URL and product name
Number of rows in the result set
JDBC driver name and version

Question 30

Which of the following statements is false?

All the methods in JRadioButton are inherited from javax.swing.AbstractButton.
You can use an icon on JRadioButton.
JButton and JRadioButton fire same types of events.
All the methods in JRadioButton are also in JButton.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago