Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 579 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 az16kA
Related Questions
Core Java : What is the relationship between a method's throws clause and the exceptions  that can be thrown during the method's execution?

What is the relationship between a method's throws clause and the exceptions that can be thrown dur....

A method's throws clause must declare any checked exceptions that are not caught within the body of ....
Category: Core Java Date: 11/7/2010 2:56:54 PM
Core Java : What is the difference between TCP/IP and UDP?

What is the difference between TCP/IP and UDP?

TCP/IP is a two-way communication between the client and the server and it is a reliable and there i....
Category: Core Java Date: 11/7/2010 1:51:52 PM
Core Java : What are the methods in Object class that must be overrided, if you override equals() method?
Core Java : What method must be implemented by all threads?

What method must be implemented by all threads?

All tasks must implement the run() method, whether they are a subclass of Thread or implement the R....
Category: Core Java Date: 11/7/2010 12:46:50 PM
Core Java : What modifiers can be used with a local inner class?

What modifiers can be used with a local inner class?

Final or abstract.
Category: Core Java Date: 11/7/2010 12:14:49 PM