Brian Deer

Greenhorn
+ Follow
since Jan 30, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Brian Deer

Congratulations!!!

What do you think was the best resource or study strategy that helped you pass the test?

brian
17 years ago
Congratulations!!!

What do you think was the best resource or study strategy that helped you pass the test?

brian
17 years ago
So why the <T> before the List<T> return type?

public static <T> List<T> backwards(List<T> input);

[ July 01, 2007: Message edited by: Brian Deer ]
Is it a type parameter that must be used if you don't put a type parameter in the class declaration?
[ July 01, 2007: Message edited by: Brian Deer ]
In a recent example I read I was trying to figure out what the different parts of this line were:

public static <T> List<T> backwards(List<T> input);

Does this line say that it can take a type <T> as an argument and must return at List<T>, or am I misinterpreting this method?

If this is not enough information to answer my question I am glad to list the entire example question.

Thanks,
brian
Thank you all for your responses. Sorry I left the semi-colons out of the second half of the example.

brian
Any help with reference variable casting is much appreciated.

Here is the question from K&B that threw me off:

Given:
class Putter{
public static void main(String[]args){
Bango b1=new Bango();
Bango b2=new Bongo();
Bango b3=new Bingo();
//insert code
}
}
class Bango{}
class Bongo extends Bango{}
class Bingo extends Bongo{}
Which, inserted at "//insert code", will NOT compile?(Choose all that apply.)

A.Bongo b4=b2
B.Bongo b5=(Bongo)b2
C.Bango b6=b3
D.Bango b7=(Bango)b3
E.Bingo b8=b3
F.Bingo b9=(Bingo)b3
G.Bango b10=(Bongo)b3

Answer: A and E will not compile.

For one, I guess I don't understand how G can work.

Secondly, Is there a shortcut or some other way to think of it that may help me wrap my mind around the concept?

Help.
thanks,
brian
Very helpful. thank you!!!
Hello,
I am having a hard time wrapping my mind around the multidimensional array concept.

If I have an array declaration of:

double d[][][] = new double [3][][];

How would one explain best what this would hold?
I see a lot of posts that say "code a lot of small programs based on the objectives" to get ready for the SCJP exam. Does anyone know of or have any exercises or practice projects that they can recommend to help me study for the exam? Or maybe a link with some assignments??

thanks,
brian
I don't know much about Ajax. Does this book cater to people that are new to it, or does it expect prior knowledge?
Anyone use epractizelabs tests to study for the scjp 5.0 and pass?

Anyone have an opinion in this versus the whizlabs?
Any other similar resources that you'd recommend?
Has anyone here used the whizlabs certification prep items to pass the scjp and been successful?
Also, anyone have opinions on the whizlabs vs. just using the certification book by kathy and bert???

thanks,
brian