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



I dont want to use serialzable in java is there any another concept so plz tell me..

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

I dont want to use serialzable in java is there any another concept so plz tell me..

Answer / haneef

using annatations it is possible

Is This Answer Correct ?    0 Yes 0 No

I dont want to use serialzable in java is there any another concept so plz tell me..

Answer / guest

use the keyword transient...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the ways of polymorphism other than Overridding & Overloading

1 Answers  


Does apple use java?

0 Answers  


v-model life cycle

0 Answers   Virtusa,


What is scope of a variable?

0 Answers   TCS,


Which is better stringbuilder or stringbuffer?

0 Answers  






Why java is free from garbage values??

4 Answers  


Explain what access modifiers can be used for methods?

0 Answers  


How would overload a function based on return type?

0 Answers   Genpact,


What are the uses of synchronized keyword?

0 Answers  


Does isempty check for null?

0 Answers  


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?

3 Answers   IBM,


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;

2 Answers  


Categories