Friday, September 4, 2009

SCJP Questions

Given:
1 public class returnIt (
2 returnType methodA(byte x, double y) (
3 return (short) x/y * 2;
4 )
5 )
What is the valid returnType for methodA in line 2?
A. Int
B. Byte
C. Long
D. Short
E. Float
F. Double
Answer: F

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 */