Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 606 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 tIGzQr
Related Questions
Core Java : Which Java operator is right associative?

Which Java operator is right associative?

The = operator is right associative.
Category: Core Java Date: 11/5/2010 5:41:53 PM
Core Java : What is the difference between URL and URLConnection?

What is the difference between URL and URLConnection?

A URL represents the location of a resource, and a URLConnection represents a link for accessing or ....
Category: Core Java Date: 11/5/2010 5:09:51 PM
Core Java : What is the Collection interface?

What is the Collection interface?

The Collection interface provides support for the implementation of a mathematical bag - an unordere....
Category: Core Java Date: 11/5/2010 3:20:53 PM
Core Java : What is the difference between ServerSocket and Socket?

What is the difference between ServerSocket and Socket?

They are the two important TCP Socket classes. ServerSocket is useful for two-way socket communicati....
Category: Core Java Date: 11/5/2010 1:42:51 PM
Core Java : Why are the methods of the Math class static?

Why are the methods of the Math class static?

So they can be invoked as if they are a mathematical code library.
Category: Core Java Date: 11/5/2010 12:25:54 PM