Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 581 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 lFzVPq
Related Questions
Core Java : What method must be implemented by all threads?

What method must be implemented by all threads?

All threads must implement the run() method, whether they are a inherite from Thread class or implem....
Category: Core Java Date: 10/30/2009 5:10:31 AM
Core Java : What are the different scopes for Java variables?

What are the different scopes for Java variables?

The scope of a Java variable is determined by the context in which the variable is declared. Thus a ....
Category: Core Java Date: 10/30/2009 4:56:04 AM
Core Java : Can applets communicate with each other?

Can applets communicate with each other?

Applets may communicate with other applets running in the same virtual machine. If the applets are o....
Category: Core Java Date: 10/30/2009 4:21:44 AM
Core Java : Primitive data types are passed by reference or passed by value?

Primitive data types are passed by reference or passed by value?

Primitive data types are passed by value.
Category: Core Java Date: 10/30/2009 4:17:35 AM
Core Java : Can try statements be nested?

Can try statements be nested?

Yes, Try statements can be nested.
Category: Core Java Date: 9/12/2009 8:20:13 PM