Given this sample of code:
{
try (DataOutputStream dataOut= new DataOutputStream (new FileOutputStream ("testdata")
please, let me know, is dataOutput a reference variable also for FileOutputStream since it somehow works? Otherwise, why to put in a parameter holder new FileOutputStream ("testdata"), how does it actually work if there is no reference variable of it?
Ps.: please, don't beat me too much, I'm still new to all of this.