what is a transient variable?
Answers were Sorted based on User's Feedback
Answer / ravikiran
Transient variable is the one which cann't be serialized
| Is This Answer Correct ? | 19 Yes | 3 No |
Answer / firoz mahmud
A transient variable is a variable that may not
be serialized.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / b.k.senthil kumar
It is java keyword. it comes under seralizable concept .if
we declare one vaiable as transient it can not be
seralizabled
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / debapriya patra
When ever we don't want to serialize a variable , we specify
that variable as transient.So that its not be serialized.And
when we de serialize the value we get the default value of
that variable.
And only we mentioned the variables as transient.
| Is This Answer Correct ? | 12 Yes | 5 No |
Answer / jack
A variable transfer one network to other nerwork,sometime
that varaible lost,at this time put transient before a
varaible
| Is This Answer Correct ? | 3 Yes | 0 No |
What do you mean by compiler?
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1
Can we modify the throws clause of the superclass method while overriding it in the subclass?
What isan abstract class and when do you use it?
What are the differences between string and stringbuffer?
What is passing parameters in java?
Why is a string immutable?
How does enum work in java?
why Runnable interface is preferable than extending the Thread class?
7 Answers Aizza, College School Exams Tests, Sybrant Technologies, Wipro,
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
Can we execute java program without main method?
What is a lock or purpose of locks in java?