1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
4vir4ik [10]
4 years ago
9

Which method can be used to write data to a text file opened with the BufferedWriter object outfile?

Computers and Technology
1 answer:
maksim [4K]4 years ago
7 0

Answer:

Option (d) outfile.write();

Explanation:

As the object created for the class BufferedWriter is outfile, outfile.write is the correct syntax for writing in a text file. Here, write is the method used for writing into a text file. The data present is written in the textfile. Here, the text file is opened before writing the text into the file. Option (d) is correct.

Option (a) outfile.newLine(); is used to separate the lines. This is used to break the existing lines into smaller lines. This can also be used to start a new line. Here, newLine() is the method.So, option (a) is not suitable.

Option (b) outfile.existLine(); This is not a valid syntax as there is no method called existLine() in the class BufferedWriter. So, this is a wrong option.

Option (c) Write(outfile); This is not a valid syntax for writing in a text file. This is a wrong option.

You might be interested in
write two paragraphs (at least 5 sentences each) about what President Biden and Vice-President Harris plan to do during the firs
frozen [14]

Answer:

writing one in comments bec i don't have time for both sorry

4 0
3 years ago
The programmer must initialize variables when they are declared
lorasvet [3.4K]

Answer: When you declare a variable, you should also initialize it. Two types of variable initialization exist: explicit and implicit. Variables are explicitly initialized if they are assigned a value in the declaration statement. Implicit initialization occurs when variables are assigned a value during processing.

Explanation:

For example, in JavaScript

var PaintAmount = 50; -declare and initialize  

function setup() {

   creatCanvas(200, 200);

}  

function draw() {

   ellipse(PaintAmount, PaintAmount) -use the variable PaintAmount

}

or rather in Java,

package random;

public class something() {

Public static void Main(String []args) {

        string name;  // this is declaring the variable with the example type  

     

       string name = new string; //this initializes the declared variable

}

}

6 0
3 years ago
A ________ provides quick access to context indicators, email, secure instant messaging, voice and video calling, conference cal
e-lub [12.9K]

Answer:

Universal dashboard

Explanation:

Universal dashboards is a web framework that help people manage their unified communications, providing quick access to context indicators, email, secure instant messaging, voice and video calling, conference calling, corporate RSS feeds, and more. The Mitel Unified Communicator Advanced is a software client that integrates all these features thereby making it possible for employees and co-workers to communicate. This software can also be used to integrate both a company’s ERP and customer relationship management system launching the customer information on the screen any to time a call is been made  such as customer name and location.

5 0
4 years ago
Unlike clip art, you cannot resize a photograph using the mouse. <br> a. True<br> b. False
masya89 [10]
<span>b. false; unlike clip art, you cannot resize a photograph

</span>
7 0
3 years ago
The sequencing of content in a broadcast is called a file.<br> a. true<br> b. false
Alenkasestr [34]
B
the correct name is streaming
6 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program whose input is two integers and whose output is the two integers swapped. Place the values in an array, where x
    12·1 answer
  • Telecommunications is the transmission of voice and video as well as data and usually implies transmitting a longer distance tha
    5·1 answer
  • The entrance facility is the place where the connection to a WAN is located. It is basically the point where the LAN begins and
    9·1 answer
  • Describe the use of technology in the promotional function
    5·2 answers
  • What is an rgv in coding
    10·2 answers
  • What is Game Theory?
    6·1 answer
  • SOMEBODY HELP ME ASAP PLEASE AND THANK YOU
    14·2 answers
  • Select the correct answer. Which of these is a game-centric handheld gaming console? A. IPad B. iPhone C. PSVita D. Xbox ​
    9·2 answers
  • Why do guys get jealous when u hangout with another guy that's not them
    6·2 answers
  • Meteoroids are small space rocks. They are usually pieces of asteroids or comets. Meteoroids orbit the sun like asteroids and co
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!