Djonatah Stiegler

Ranch Hand
+ Follow
since Oct 30, 2008
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 Djonatah Stiegler

Yes Punit,

I saw it few seconds before your post...I was stupid..

thanks.
<><

Congratulations Duran Harris...

most of your doubts were our doubts, so thank you for having doubts

On next Monday I'll take my exam.

One more time, congratulations.
15 years ago

sunil langeh wrote:Dear Rathod, A final class can not be sub classed but it doesn't mean it can not be instantiated......




Ok, but why is this a compile time error?

thanks
<><
Ankit is right...

When creating string objects like this:


You are creating two string objects, one in the string pool and another object on the heap.

So, on your code, you are trying to compare two different objects.
<><


It 's going to compile fine when you have a collection that stores Objects
like that:



or that



But since Object class doens't have a super type it is useless...

<><

Good question.

Remenber that an Exception can be polimorphically a RuntimeException (Because RuntimeException is an Exception subtype) so surely you can't say that an Exception is a checked exception, it can also be a RuntimeException...

But IOException can't be a RuntimeException. That's why it didn't compile.

I hope I was clear.
<><
Wrappers are obects, so their default values are null.

<><

Abhi vijay wrote:Source: Inquisition



Here according to me Line2 should compile and run.
But the answer says. Compile time error.

But <? super String> means anything that is a super class of String can be added into the collection, Object is a superclass of String?



You are wrong.




This means the List can accept only collections of string super types, or strings. It is not about the elements that will be inserted into the collection.

<><

Ruben Soto wrote:Alessandra,

Translations can sometimes have errors, sorry about that. If you have any questions about any other possible issues just ask in the forum and we can confirm whether it's in the original English edition.



You are right Ruben, surely it is a translation issue.

Alessandra Lima wrote:
So, I am reading the book SCJP 5 Study Guide in Portuguese but I will do the test cx-310-065 in English.
I think the problem is the translation.



Alessandra, I think you are from Brazil ;).
I read all the book in English, and the language is very simple to understand, it would be a good idea for you..

<><
I think is because you are searching for a white space followed by a a character (range from "a" to "f", both lower and upper case)

//d - will not be required because the ? quantifier - it will require 0 or 1 occurences

<><
[ January 01, 2009: Message edited by: Djonatah Stiegler ]
Hi ranchers

Happy new year \o/

I'm preparing to SCJP 1.6 exam , and I wanted to know from the ranchers who got the SCJP using the Examlab mock exam.

Is the ExamLab much harder than the real exam? Because I'm getting 55%-61% on the ExammLab...


Thanks.
Yes, I think so ;D

Thanks for the answer Ankit.
I'm sorry I was wrong,

I didn't see I was stupid.. you are right , you can receive a List<?>...

Sorry for that
Ruben,

I tried this code in Brazil, and it worked:



It seems there's something about the special relationship between outer and inner classes. But I can't say I'm right.