Answer:
BufferedWriter salesdata = new BufferedWriter(new FileWriter("out.dat", true);.
Explanation:
- The statement BufferedWriter salesdata = new BufferedWriter(new FileWriter("out.dat", true); can be used to create a file object that will append data to an existing file.
- Here, BufferedWriter class is used to create text from an output stream.
- Here, FileWriter is used to create the file from the text. The constructor for FileWriter is FileWriter (String filename, boolean append).
- Here, filename is string ("out.dat") is provided and the append is boolean can be either true (if the text has to be appended at the end of the file) or false (if the text hasn't to be appended at the end of the file).
- So, option (b) is correct.
- Option (a) is not correct as it indicates the text shouldn't be appended at the end of the file as the boolean is false.
- Option (c) is not correct as it doesn't mean to append as there is no boolean true indicated in the constructor.
- Option (d) is not correct as there is not such kind of syntax.
Answer:
The definition of a class Telephone is given as
public class Telephone // class telephone
{
String number; // variable number of type string
static int quantity = 250;
// variable quantity of type int
static double total = 1565.92; // variable total of type double
}
Explanation:
Following is the description of Statement
- Create a class "Telephone" by using the keyword class.In that class we declared data member .
- We declared a variable "number" of type "string" which has no constructor.
- We declared a variable "quantity" of type "int" which is a static type variable. The static type variable retains the value during the program execution.
- We declared a variable "total" of type "double" which is a static type variable. The static type variable retain the value during the program execution .
This totally depends on what they need and what they are willing to spend. If they just need access to google docs/ sheets etc for example (so just the web with a web browser), either Linux / Un*x or Windows will do and linux is the free choice. If they want to be part of the microsoft ecosystem or use some windows specific software they will need to use Windows or an emulator in Linux.
I would not recommend MSDOS in this day and age.
Answer:
i think its the third one, i hope this helps
Explanation:
Answer:
I recommend unplugging and plugging it back
Explanation: