Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 664 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 SZYZN3
Related Questions
Core Java : What is thread priority?

What is thread priority?

Thread Priority is an integer value that identifies the relative order in which it should be execute....
Category: Core Java Date: 11/4/2010 7:43:50 PM
Core Java : What is the difference between preemptive scheduling and time slicing?

What is the difference between preemptive scheduling and time slicing?

Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead ....
Category: Core Java Date: 11/4/2010 5:53:52 PM
Core Java : What's the difference between methods and constructors?

What's the difference between methods and constructors?

Constructors must have the same name of the class and can not have a return type. Methods can be cal....
Category: Core Java Date: 11/4/2010 4:59:46 PM
Core Java : What is the purpose of  Observer and Observable?

What is the purpose of Observer and Observable?

Subclass of Observable class maintain a list of observers. Whenever an Observable object is updated,....
Category: Core Java Date: 11/4/2010 4:15:50 PM
Core Java : What is the ObjectInputStream?

What is the ObjectInputStream?

It is a class allows you to read objects directly from a stream
Category: Core Java Date: 11/4/2010 3:43:49 PM