Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 436 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 YNC1un
Related Questions
Core Java : Which Math method is used to calculate the absolute value of a number?

Which Math method is used to calculate the absolute value of a number?

The abs() method is used to calculate absolute values
Category: Core Java Date: 11/7/2010 9:08:53 AM
Core Java : Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

Which characters may be used as the second character of an identifier, but not as the first characte....

The digits 0 through 9 may not be used as the first character of an identifier but they may be used ....
Category: Core Java Date: 11/7/2010 5:08:52 AM
Core Java : What is Unicode?

What is Unicode?

Unicode is used for internal representation of characters and strings and it uses 16 bits to represe....
Category: Core Java Date: 11/7/2010 4:35:52 AM
Core Java : When can an object reference be cast to an interface reference?

When can an object reference be cast to an interface reference?

An object reference be cast to an interface reference when the object implements the referenced inte....
Category: Core Java Date: 11/7/2010 2:46:53 AM
Core Java : Can a java program be compiled without main?

Can a java program be compiled without main?

Yes, it’s not required for the main method for compiling the java program. But it must have a main,....
Category: Core Java Date: 11/7/2010 1:52:47 AM