+ 1

What does this line mean!

FileOperations.writeToFile(new BusinessAccount()); FileOperations and businessAccount are classes i knw that. I am just confused what the above line actually do!

26th Dec 2020, 10:47 AM
Abdul Wahab
Abdul Wahab - avatar
8 Answers
+ 1
It just means that you can write objects to a file as well and transfer it. Other ways could be using sockets or queues etc.
26th Dec 2020, 12:55 PM
Avinesh
Avinesh - avatar
+ 4
FileOperations is a class which has a writeToFile() method and it takes a BusinessAccount object as parameter.
26th Dec 2020, 10:51 AM
Avinesh
Avinesh - avatar
+ 3
ObjectOutputStream is a class which is generally used to write objects to a stream, it could be a file as well. The above line just creates a reference of ObjectOutputStream and assigns null to it.
26th Dec 2020, 11:02 AM
Avinesh
Avinesh - avatar
+ 1
thankew so much @avinesh ObjectOutputStream outputStream = null; what does this mean
26th Dec 2020, 10:55 AM
Abdul Wahab
Abdul Wahab - avatar
0
thnksallot
26th Dec 2020, 11:03 AM
Abdul Wahab
Abdul Wahab - avatar
0
Abdul Wahab you're welcome.
26th Dec 2020, 11:03 AM
Avinesh
Avinesh - avatar
0
Avinesh in the above answe i m still confused in this line. it could be a file as well. can u explain it plz
26th Dec 2020, 12:51 PM
Abdul Wahab
Abdul Wahab - avatar
0
thanks Allot
26th Dec 2020, 1:58 PM
Abdul Wahab
Abdul Wahab - avatar