mcq
- From: FX <taranfx@xxxxxxxxx>
- Date: 31 May 2007 11:09:40 -0700
Given:
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; }
.
- Prev by Date: Re: Understanding class access
- Next by Date: Re: buggy regexp
- Previous by thread: J2SE and J2EE difference
- Next by thread: Re: mcq
- Index(es):
Relevant Pages
|