Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 653 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 VhsHUI
Related Questions
Core Java : What value does read() return when it has reached the end of a file?

What value does read() return when it has reached the end of a file?

The read() method returns -1 when it has reached the end of a file.
Category: Core Java Date: 11/9/2010 5:17:53 AM
Core Java : What is a Dictionary?

What is a Dictionary?

Dictionary is a parent class for any class that maps keys to values, in it every key is associated w....
Category: Core Java Date: 11/9/2010 4:56:47 AM
Core Java : What is a JVM heap?

What is a JVM heap?

The heap is the runtime data area from which memory for all class instances and arrays is allocated.....
Category: Core Java Date: 11/9/2010 4:23:46 AM
Core Java : What is the difference between Vector and ArrayList ?

What is the difference between Vector and ArrayList ?

Vector is synchronized , grows by 100% and having constructor to specify the incremental capacity, A....
Category: Core Java Date: 11/9/2010 3:39:51 AM
Core Java : What is the ResourceBundle class?

What is the ResourceBundle class?

The ResourceBundle class is used to store locale-specific resources that can be loaded by a program ....
Category: Core Java Date: 11/9/2010 2:55:55 AM