This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Which are valid declarations : a. private class A b. class X extends class Y { // Note the { both a & b are valid. so when they mention class declaration should we include { ?
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
0
I would have to say that neither one is a valid declaration - but both can be part of a valid declaration. A valid class declaration would have to include { and }, unless something in the problem wording suggests that the declaration doesn't have to be complete. I have seen sample questions that ask "which can be part of a valid declaration?" - both (a) and (b) would then be valid.
"I'm not back." - Bill Harding, Twister
maha anna
Ranch Hand
Joined: Jan 31, 2000
Posts: 1467
posted
0
No Jim. the 2nd declaration class X extends class Y { is not valid even as 'part of a valid declaration. It has 'extends class Y' . It shd be 'class X extends Y'
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
0
Oops. You're right of course. I was only thinking about the {, silly me. Thanks.
Cherry Mathew
Ranch Hand
Joined: Dec 26, 2000
Posts: 159
posted
0
if u guys r talking about what to write in JCP exam what if they ask to write a method and what if that method take parameters and what if the ask us to replace a statement do we have to put the semicolon also Cherry
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.