Sharath Sri

Greenhorn
+ Follow
since Dec 01, 2007
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 Sharath Sri

Hi,
I'm not getting a clear picture about the contexts of auto-boxing and auto-unboxing.
Is auto-boxing and auto-unboxing will happen in line of the corresponding primitive types or there are some exceptions to this.
I mean following things are possible with primitive types:
a) Unary and Binary Numeric Promotion.
c) Narrowing and Widening conversions.
Does the above conversions apply when autboxing and auto-unboxing happen.
Can some one please clarify.
Thanks in adavance.
Regards,
Sharath
Hi,
I'm going thru Kathy Sierra book for SCJP5.
I found some mistakes in the book for example in chapter3
in the section where they speak about Boxing,==, and equals.
I tried the example given in this section and the output given
in the book is completely wrong.
Even in the self review questions the answer choice is different and the explanation gives a different answer.
Can anyone tell be what do I do, should I follow this book or there is an errata which has the corrections.
Please help ....
Regards,
Sharath
Hi All,
I'm preparing for SCJP1.5
Can any one let me know where can I find some programming exercises for coding practice.
thanks in advance.
Regards,
Sharath
Hi All,
In one of the books I'm refering to for SCJP1.5 says that the anonymous classes can contain only final static fields. But when I tried the below program it actually executed.
class Boo
{
Boo(String s){}
Boo(){}
void method()
{
}

}
class Bar extends Boo {
Bar(){}
Bar(String s){super(s);}
public static void main(String args[])
{
Boo f = new Boo(){String s;
void mehtod()
{
s= "20";
}
};
}
}
Is it that I'm not reading the statement properly or the book is wrong.
Please correct me if I'm wrong.
Regards,
Sharath
thanks a lot Kelvin for the answer .... I got a clear example for the solution of the scenario I was looking for.
Hi All,
Here is a scenario.
A main programme spawns few threads(each thread may take it's own time for completion) and the main thread has to finish after all the threads have completed.
Can anyone help me with a code snippet or skeleton code for the above scenario.
Regards,
Sharath
Hi all,
Can anyone please let me know what are the new topics introduced for SCJP1.5 compared to SCJP 1.4 and what are the topics which are removed.
thanks in advance.
Regards,
Sharath
Hi,
I'm taking up SCJP1.5 exam.I wanted to know wether it's useful to study SCJP1.4 before studying SCJP1.5.
It will be helpful if some one can suggest.
thanks in advance ....
Regards,
Sharath
[ December 02, 2007: Message edited by: Marilyn de Queiroz ]