RaviKumar Golagani

Greenhorn
+ Follow
since Sep 02, 2003
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 RaviKumar Golagani

Hi
I have completed SCJP 1.4.
I am Planning to take SCWCD.
Please help me which version of SCWCD should I take.
Please let me know the good books which expslins clearly all the objectives to take on the exam.
Cheers
Ravi
Hi
I have completed SCJP 1.4.
Thanks to all Ranchers and k&B Book.
Cheers
Ravi
19 years ago
Hi
I am happy to inform you all that I have completed SCJP 1.4 on 10/04/2004.
Thanks to all the JavaRanch guys....

Cheers
Ravi
19 years ago
public class ADirtyOne
{
//char a = '\u000A';
}
Hi,
Can anyone expalin me, why the above code throws a compile time error even though I commented the line.
It is working finw if I remove the line.
Cheers
Ravi
Hi
Can anyone let me know where does I get good stuff regarding
1.Shift Operators--Especially shifting Negative No's.
2.Labeled Loops
Cheers
Ravi
Hi
I tried out the following code
StringBuffer sb1 = new StringBuffer("xyz");
StringBuffer sb2 = new StringBuffer("xyz");
System.out.println(sb1.equals(sb2));//output is false
Float f1 = new Float("0.9f");
Float f2 = new Float("0.9f");
System.out.println(f1.equals(f2));//output is true
Can anyone explain me exactly what is happening in the above code, as we are using equals()method in both cases...
Why the output is different in both cases...
Cheers
Ravi
Hi Krishnadas
Yes, I was in a overlook....
Thanks
Ravi
Hi Swati,
Even I too read that both super() and this() cannot be placed in the constructor, thanks for posting this Qn even me too was in same impression.
But they both can be in the same constructor, just make sure that super() must be the first statement to be placed in the constructor, or else it may throw a compile time error.
Cheers
Ravi
Hi
Can anyone let me know,how many questions come from each chapter???
Is there any format that , each chapter should have these many number of questions...
Cheers
Ravi
why are local variables not initialized ?

Thank you in advance
Ravi
Hi
I am preparing for SCJP
I wanted to write mock exams by topic wise(Single Topic)
I am clicking the link below and selecting individual topics, but I am getting famous error "The page cannot be found"
http://www.danchisholm.net/apr18/topic/index.html
Can anyone let me know the links availabe to write mock exams topic wise(Single Topic).
Cheers
Ravi
Hi,
At compile-time the compiler "trusts" you when you cast down, but at run-time it finds that you are Casting with the parent object,since both are incompatible or you'll get a runtime exception.
Child c = (Child) p;
By above line of code, it is nothing but saying parent = child,which is wrong.Parent can have all the properties of the child,but child cannot have all the properties of the parent.
Cheers,
Ravi
I think the possible output is 12
Reasons:
1.There are 2 threads started simultaniously in the order the start() method called.
2.As everyone know only one thread accessing the synchronized method.
3.First Thread accesses the synchronized method and prints the value of x as 1.
4.After that control returns to run() from where the synchronized method called.
5.Now the second thread eventhough started earlier,the run() method is called now only, after the first thread releases the synchronized method..
6.Now second thread prints the value of x as 2, since it is an static variable.

Cheers,
Ravi
Hi,
When you make your constructor public,protected or package specifier(default) you can can instantiate an object of that type as already explained.
When you make your constructor private, to be clear you are making your class a singleton, so We need to provide an accessor method, that returns an instance of the SingletonObject class, but doesn't allow more than one copy to be accessed. So take care while making constructor private.
I hope this helps you...
Cheers,
Ravi
Hi,
Can anyone let me know,is there any rule such as those who have done SCJP or any other certifications are eligible to do this Web Component Certification.Can we directly do this certification???
Cheers,
Ravi