Win a copy of Terraform in Action this week in the Cloud forum!

Ramana Namuduri

+ Follow
since Mar 02, 2000
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ramana Namuduri

I think answer d is not correct because once an exception is caught, the corresponding catch statement is executed and finally block is also executed. After that block, compiler wont execute any other instructions because an exception is already caught.
I tried to start the mock exam but I could not. It is not getting started. Please give more details about it
Congrats, Can you please suggest me a few Mock exams which you did.
Congrats, can you please suggest me what mock exams you took and how much you score in them. Congrats again.
Thanks for correcting me. I used the word "overridden" instead of "hidden" in the case of static methods.
Thanks Maha Anna
[This message has been edited by Ramana Namuduri (edited March 06, 2000).]
Congrats, Getting score above 71% is really a good one.
My friend, you are again confused. Look at my answer for ur previous question
Both Map and Set should contain only unique elements, but Map can be used for indexing purposes whereas indexing cannot be done for Set.
I am sure that the interviewer was absolutely wrong in asking the second question. i.e., "there is an access modifier that allows ONLY subclasses to directly access a variable in a class WITHOUT allowing access by classes in the same package that are NOT subclasses". It is not possible. About salary, you can demand for whatever you want, as you deserve for it.
My answer is B, C, D.
B is true because a lock can be obtained using wait() method. But, wait is a method of Object class and thus every object can use wait() method ( every class is extended from Object class).
C is true because every method declared as synchronized gets a mutex(mutually exclusive) lock, a straight forward one.
D is true because the scheduling algorithm depends on the platform used
[This message has been edited by Ramana Namuduri (edited March 04, 2000).]
Let me get back the question to all of you again.
My answer is all the three.
Now, if any variable is not initialized and is referred in a method, the compiler complaints for"variable referred before it is initialized". That means, the variable must be initialized or it must hold some value before it has been referred.Either it can be explicitly initialized(assignment operation) or it can be implicitly initialized(using new). This problem does not exist for an instance variable. Because, they get initialized automatically. But, when any one of the given answers is used for string varibles and directly referred any where in the method, the compiler does not give any error, means, initialization is automatically done.
Congrats, Thats really a great achievement. Have you ever expected such a big score? Can you please give me what sort of questions you were asked in the exam?
21 years ago
Uma, I would like to higlight two concepts here.
1. Any static method must be hidden by only a static method. A static method cannot be hidden as non static. In the same way, a non static method cannot be overridden as a static one.
2. Regarding access modifiers, follow this rule,
private-> default -> protected -> public.
Here, default means no access modifier specified.
Now, a private method can be overridden to a default or protected or public. Follow from left to right and right to left is not possible.
I hope ur doubt got solved now,

[This message has been edited by Ramana Namuduri (edited March 06, 2000).]
"Super" and "super" are not one and the same.
Also, obj1 and Sub1 are no where related to each other. Hence it gives a runtime error altough it compiles successfully