Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 729 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 6SVDDG
Related Questions
Core Java : What is externalizable ?

What is externalizable ?

It is an interface that extends Serializable. It is having two different methods writeExternal() and....
Category: Core Java Date: 11/7/2010 9:51:51 AM
Core Java : What are synchronized methods and synchronized statements?

What are synchronized methods and synchronized statements?

Synchronized methods are methods that are used to control access to an object:where the thread onl....
Category: Core Java Date: 11/7/2010 9:19:49 AM
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