Akash Singhal

Greenhorn
+ Follow
since Feb 12, 2005
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 Akash Singhal

Congrats ..... its a really good score......
19 years ago
Hi,

I cleared SCJP with 95 % . Actually i did aim for 100 % . But i made a silly mistake with Assertions & Garbage Collection. I realized it after getting my mark-sheet..

Well Still i am happy with my score. Worked really hard for it . Practiced Dan, MArcus Green, JCHQ, javacertificate, ******* and many more.. Hard Work does pay. Moreover i am also thankful to this Great group which has a greater role in my success.. Thanks a lot guys..
Regards,
[ March 02, 2007: Message edited by: Barry Gaunt ]
19 years ago
Hi,
Why does the following code give me Error??

It gives me following error Clone() has protected access in java.lang.Object


PS :- I cleared SCJP1.4 today with 95 % (58/61)

Hi,
The following code :-



gives
clone has protected access in java.lang.object inspiteof all Objects extending from java.lang.Object. Can anyone shed light on this???


P.S : I passed SCJP 1.4 today with 95 % (58/61)

Thankfully this wasnt the question i faced

Regards,
Hi,
I am extremely sorry for my previous post But just to add to :-


Although the result of that expression is (int) in the range of byte,this cannot be determined at compile time.So the assignment requires an explicit cast. like b=(byte)b<<1;

b=(byte)b<<1 wont work because (type) operator has a higher precedence than all the arithmatic operators. the correct code should be b = (byte)(b<<1);
--------------------------------------------------------------------------------
Hi,

I too faced the same problem. Just write a mail to support@whizlabs.com. The concerned person will mail you back the UCK

Regards
No Rathi,
System.out.println(String(null)) prints null onto the screen.
System.out.println(null) gives compile time error.Please check..

Regards
Hi,



Returns false

However
prints null.

Besides null also gets typecast into any user-defined objects inspite of
instanceof returning false.. how is it possible???Thanking in advance

Regards,
The return from the finally block overrides any previous return values as well as it also overrides any exceptions thrown. Hence the exception thrown is overriden by the object returned from the finally Block..

Regards
Hi,

Arrays of primitive data types such as int,long,float are subclasses of Object & not Object[].Whereas all other arrays are subclasses of Object[]


Regards,