Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 763 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 M1tnwi
Related Questions
Core Java : What is the Dictionary class?

What is the Dictionary class?

The Dictionary class provides the capability to store key-value pairs.
Category: Core Java Date: 11/5/2010 8:58:53 AM
Core Java : To what value is a variable of the String type automatically initialized?

To what value is a variable of the String type automatically initialized?

The default value of an String type is null.
Category: Core Java Date: 11/5/2010 8:25:52 AM
Core Java : Can we  run more than one JVM in a system?

Can we run more than one JVM in a system?

Yes, we can run any number of JVMs in a system.
Category: Core Java Date: 11/5/2010 8:04:47 AM
Core Java : Can the static method be overrided?

Can the static method be overrided?

No
Category: Core Java Date: 11/5/2010 7:53:51 AM
Core Java : Why java is said to be pass-by-value ?

Why java is said to be pass-by-value ?

When assigning an object to a variable, we are actually assigning the memory address of that object ....
Category: Core Java Date: 11/5/2010 7:20:51 AM