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 |
What are the ways of polymorphism other than Overridding & Overloading
Does apple use java?
v-model life cycle
What is scope of a variable?
Which is better stringbuilder or stringbuffer?
Why java is free from garbage values??
Explain what access modifiers can be used for methods?
How would overload a function based on return type?
What are the uses of synchronized keyword?
Does isempty check for null?
How HashMap implemented in java? how it internally works when values are added or searched from hashMap?What is the difference betweenthe implementation of hashmap and Linked Hashmap?
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;