Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 655 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 PgjNT1
Related Questions
Core Java : What is the difference between static and non-static variables?

What is the difference between static and non-static variables?

A static variable is associated with the class as a whole rather than with specific instances of a c....
Category: Core Java Date: 11/3/2010 3:32:53 AM
Core Java : What is reflection?

What is reflection?

Reflection is the process of finding out the different features of a class dynamically.
Category: Core Java Date: 11/3/2010 2:27:52 AM
Core Java : What is Inter-Thread communication?

What is Inter-Thread communication?

Exchange of information between two threads.
Category: Core Java Date: 11/3/2010 1:22:50 AM
Core Java : Is the ternary operator “x : y ? z” written right?

Is the ternary operator “x : y ? z” written right?

No, It is written x ? y : z.
Category: Core Java Date: 11/3/2010 12:49:48 AM
Core Java : Is Java a pure object oriented language?

Is Java a pure object oriented language?

Yes, but uses primitive data types, so it is not fully objective oriented.
Category: Core Java Date: 11/3/2010 12:17:47 AM