I dont want to use serialzable in java is there any another
concept
so plz tell me
Answers were Sorted based on User's Feedback
Answer / niraj deshmukh
Java provides Serialzable Interface to persist the object
state in distributed enviroment (if wanted to transfer the
over wire).
for e.g :
class persist implements Serializable {
// object's state needs to persist
private String state;
.
.
}
There is another way to achieve this behavior using
"Externalizable" interface. By implementing this, developer
can customized the serializable process.
| Is This Answer Correct ? | 1 Yes | 0 No |
How to set the permissions to a file in java?
Can a constructor have different name than a class name in java?
What is data string?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
In which JDK version event-delegation model is introduced?
What is field name?
What are abstract methods in java?
Can you have a constructor in abstract class?
Is age a discrete variable?
What is singleton class in java and how can we make a class singleton?
How to check if a list is sorted in java?
Why const and goto are reserved keyword in java?