Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 701 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 gfK7Vo
Related Questions
Core Java : Is Java a pure object oriented language?

Is Java a pure object oriented language?

Yes, but uses primitive data types, so it is not fully objective oriented.
Category: Core Java Date: 11/3/2010 12:17:47 AM
Core Java : What happens if an exception is not caught?

What happens if an exception is not caught?

An uncaught exception results in the uncaughtException() method of the thread's ThreadGroup being in....
Category: Core Java Date: 11/2/2010 10:16:55 PM
Core Java : What is the result of this code: if("String".trim() == “String")  System.out.println("Equal"); else System.out.println("Not Equal");
Core Java : What is static initializer block?

What is static initializer block?

A static initializer block is a block of code that declares with the static keyword and execute at t....
Category: Core Java Date: 11/2/2010 8:38:51 PM
Core Java : What is the difference between Iterator and Enumeration?

What is the difference between Iterator and Enumeration?

Iterator allows the caller to remove elements from the underlying collection during the iteration wi....
Category: Core Java Date: 11/2/2010 8:05:51 PM