Ask a Question
Send an email to me.
 
Java Question and Answer Forums
JavaRanch Big Moose Saloon
Marcus Green's Discussion Forum
java.sun.com Forums, Chat and User Groups
 
Other Resources
Java Language Specification
Java Virtual Machine Specification
Java 2 Platform, Standard Edition, v 1.4.0 API Specification
 
Tutorials
Learning the Java Language
Operator Precedence Chart, Expressions, Statements, Blocks
Programming with Assertions
 
Answers: Certified Java Programmer Mock Exam
No.AnswerRemark
1f  g  h  The compiler will implicitly do a narrowing conversion for an assignment statement if the right hand operand is a compile time constant of type byte, short, char, or int and the value falls within the range of the variable on the left and if the variable is of type byte, short, or char.  
2b  c  f  The maximum value of type byte is 127. The minimum value of type short is -32768. The maximum value of type char is 65535.  
3a  d  e  The minimum value of type byte is -128. The maximum value of type short is 32767. The minimum value of type char is 0.  

Copyright © 2002-2003, Dan Chisholm
All rights reserved.