Welcome Guest | Sign in | Register
Language Fundamentals - Discussion Page For Q.3010 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Language Fundamentals > Questions and Answers

Q: Is this legal?
long longArr[];
int intArr[] = { 7 ,8 , 9};
longArr = intArr;
A. yes B. no
C. cannot be determined D. not applicable

Answer and Explanation

Answer:no

Explanation:
You cannot assign a reference to an array of primitives
to another unless they contain the same primitive types. 

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.