Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 847 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 TLK48P
Related Questions
Core Java : What's new with the stop(), suspend() and resume() methods in JDK 1.2?

What's new with the stop(), suspend() and resume() methods in JDK 1.2?

The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.
Category: Core Java Date: 11/8/2010 1:51:46 PM
Core Java : What is the Class class?

What is the Class class?

The Class class is used to obtain information about an object's design.
Category: Core Java Date: 11/8/2010 11:29:48 AM
Core Java : What is the % operator?

What is the % operator?

It is referred to as the modulo or remainder operator. It returns the remainder of dividing the firs....
Category: Core Java Date: 11/8/2010 11:18:53 AM
Core Java : What is coupling?

What is coupling?

Coupling is the dependency between different components of a system
Category: Core Java Date: 11/8/2010 10:46:51 AM
Core Java : What are the diffrence between order of precedence and associativity?

What are the diffrence between order of precedence and associativity?

Order of precedence determines the order in which operators are evaluated in expressions. Associatit....
Category: Core Java Date: 11/8/2010 8:35:48 AM