Serializable interface is used to create classes which
enable the transfer of any binary object over a
communication channel by transferring all the data of the
object in a byte by byte manner.
Serialization is the process of writing complete state of
java object into output stream, that stream can be file or
byte array or stream associated with TCP/IP socket.
serialization is the interface, which is used to serialize
(convert object into byte )the object, we can use this in
the situation for result pass over to any medium like
output stream,writer,bytearrayouputstream (and also persist
into stable storage).
serialization is the interface that convert object into byte
stream. and this objects saved to local discs by
ObjectOutputStream and ObjectInputStream.and this Object can
be send over the network.
Serializable interface is implemented by a class ,whose
objects state can be saved into any outputstream .This is
mainly useful in RMI[Remote Method Invocation] .
what is the purpose of method overriding in java where v r
completely re-defining a inherited method instead y can't v
create a new method and define.If the question is very silly
plz excuse me and do reply.Thank U!
11. static class A {
12. void process() throws Exception { throw new Exception();
}
13. }
14. static class B extends A {
15. void process() { System.out.println(”B”); }
16. }
17. public static void main(String[] args) {
18. new B().process();
19. }
What is the result?
1 B
2 The code runs with no output.
3 Compilation fails because of an error in
line 12.
4 Compilation fails because of an error in
line 15.