Re: mcq
- From: "Richard Reynolds" <richiereynolds@xxxxxxxxxxxx>
- Date: Thu, 31 May 2007 18:28:07 GMT
"FX" <taranfx@xxxxxxxxx> wrote in message
news:1180634980.089091.106990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Given:Q: Looking at those particular methods, which ones, placed anywhere, should
1. class Super {
2. public float getNum() { return 3.0f; }
3. }
4.
5. public class Sub extends Super {
6.
7. }
Which method, placed at line6, causes compilation to fail?
A. public void getNum() { }
B. public void getNum(double d) { }
C. public float getNum() { return 4.0f; }
D. public double getNum(float d) { return 4.0d; }
get you the sack?
A: all of them!
.
- Follow-Ups:
- Re: mcq
- From: FX
- Re: mcq
- References:
- mcq
- From: FX
- mcq
- Prev by Date: Re: mcq
- Next by Date: Re: streamed zip
- Previous by thread: Re: mcq
- Next by thread: Re: mcq
- Index(es):
Relevant Pages
|