(SCEA) Sun Certified Enterprise Architect for J2EE Technology (CX-310-051) Tutorial: Page 3

Home arrow Java Tutorials arrow SCEA 310-051 arrow (SCEA) Sun Certified Enterprise Architect for J2EE Technology (CX-310-051) Tutorial
(SCEA) Sun Certified Enterprise Architect for J2EE Technology (CX-310-051) Tutorial Print E-mail
Contributed by Joe   
Thursday, 22 June 2006

Exam Objectives  Product Description Sun Certified Enterprise Architect for J2EE Technology  (SCEA  310-051)

 Given:
1. class Super {
2. public float getNum() { return 3.of; }
3. ]
4.
5. public class Sub extends Super {
6.
7. }
Which method, places at line 6, will cause a compiler error?
A. public float getNum() { return 4.0f; }
B. public void getNum() {}
C. public void getNum(double d) {}
D. public double getNum(float d) { return 4.0d; }


 Given:
1. public class X {
2. public Object m() {
3. Object o = new Float(3.14F);
4. Object [] oa = new Object[1];
5. oa[0] = o;
6. o = null;
7. oa[0] = null;
8. return o;
9. }
10. }
When is the Float object, created in line 3, eligible for garbage collection?
A. Just after line 5.
B. Just after line 6.
C. Just after line 7.
D. Just after line 8 (that is, as the method returns)



Last Updated ( Friday, 07 July 2006 )

  home              contact us

 

©2006-2009 DeveloperZone.biz   All rights reserved     powered by Mambo Designed by Siteground