Answer:
Pattern Matching
Explanation:
Pattern matching in computer science is defined as the analysing & finding specific sequences of data of some pattern among raw data or a sequence of tokens.
Answer:
data link layer
Explanation:
you answer is data link layer
Answer:
FileOutputStream out = new FileOutputStream("ObjectData.dat");
ObjectOutputStream ostream = new ObjectOutputStream(out);
ostream.writeObject(r);
Explanation:
For object serialization, we can use the writeObject method of java.io.ObjectOutputStream class.
The complete code fragment is as follows:
import java.io.*;
class Demo{
public static void main(String args[]){
try{
r = <Reference to Object to be serialized> ;
FileOutputStream out = new FileOutputStream("ObjectData.dat");
ObjectOutputStream ostream = new ObjectOutputStream(out);
ostream.writeObject(r);
ostream.close();
} catch(Exception e){
e.printStackTrace();
}
}
}
A computer network is best described as two or more computers that are linked together.