Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 601 Page Views: 

What is numeric promotion?



Posted By: Avi Date: 5 November 2010 01:20:55 AM
 Answer:

Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long values, if necessary. The long and float values are converted to double values, as required.


Posted By: avibtech


Date: 5 November 2010 01:20:55 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image OheGMQ
Related Questions
Core Java : What Checkbox method allows you to tell if a Checkbox is checked?

What Checkbox method allows you to tell if a Checkbox is checked?

getState()
Category: Core Java Date: 11/6/2010 2:57:54 AM
Core Java : What is the difference among JVM Spec, JVM Implementation, JVM Runtime ?

What is the difference among JVM Spec, JVM Implementation, JVM Runtime ?

The JVM spec is the blueprint for the JVM generated. The JVM implementation is the actual implementa....
Category: Core Java Date: 11/6/2010 2:04:46 AM
Core Java : What is java collections?

What is java collections?

Java collections is a set of classes, that allows operations on  a collection of classes.
Category: Core Java Date: 11/6/2010 1:20:51 AM
Core Java : Which arithmetic operations can result in the throwing of an ArithmeticException?

Which arithmetic operations can result in the throwing of an ArithmeticException?

Integer / and % can result in the throwing of an ArithmeticException.
Category: Core Java Date: 11/6/2010 12:35:55 AM
Core Java : Are the Java run-time system generate class of exceptions?

Are the Java run-time system generate class of exceptions?

Yes, RuntimeException and Error exceptions.
Category: Core Java Date: 11/6/2010 12:14:49 AM