sudha

Greenhorn
+ Follow
since Oct 30, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sudha

Hi,
This is from deepak's mock.
Which one of the following statements is true ?
A.Transient variables are not serialized.
B.Transient methods may not be overridden.
C.Transient methods must be overridden.
D.Transient classes may not be serialized.
E.Transient variables must be static.
How to make sure about the declaration of transient variables and volatile?
Thanks and Regards
Sudha
Hi
This is from deepak's mock
Consider the following code :

1. int [ ] a = new int[ 2 ];
2. int b = 1;
3. a[b] = b = 0;

Value will be stored in what element of array a.
A.a[1]
B.none
C.a[0]
Answer given was a[1]
How can it be a[1].I didn't get this.Can any of you please explain.
Regards
Sudha
hi ajith
Thanks for the info.
I had done the same forinterface variables also.
Interface varibles can be public,static and final.But not transient,volatile,private and protected.
Interface methods can be public and abstract.But not private,protected,static,final,synchronized,native.
Hope Iam correct.
Thanks and Regards
Sudha
Hi
Please go thru the following:
I got this doubt when Iam going thru one of the mocks.
interface question {
method();
}
interface question {
int i=3;
}
What are the possible access modifiers for the method in the interface and for the variable declared in the Interface declaration?
I have read that methods are implicitly public,static and abstract by default.Are there any more access modifiers?
Thanks in Advance
Priya