Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 876 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 rkHGoW
Related Questions
Core Java : What is Inter-Thread communication?

What is Inter-Thread communication?

Exchange of information between two threads.
Category: Core Java Date: 11/3/2010 1:22:50 AM
Core Java : Is the ternary operator “x : y ? z” written right?

Is the ternary operator “x : y ? z” written right?

No, It is written x ? y : z.
Category: Core Java Date: 11/3/2010 12:49:48 AM
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");