Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started