Friday, September 4, 2009

SCJP Questions

Given:
1 abstract class abstrctIt {
2 abstract float getFloat ();
3 )
4 public class AbstractTest extends AbstractIt {
5 private float f1= 1.0f;
6 private float getFloat () {return f1;}
7 }
What is the result?
A. Compilation is successful.
B. An error on line 6 causes a runtime failure.
C. An error at line 6 causes compilation to fail.
D. An error at line 2 causes compilation to fail.
Answer: C

0 comments:

Post a Comment

 

About

Site Info

Information Source

Academy of JAVA by Rajesh Rolen Copyright © 2009 Community is Developed by Rajesh Kumar Rolen WebSite

/* tracking code by yahoo login */