Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 725 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 kfXmor
Related Questions
Core Java : What are the variuos Access Specifiers available in Java?

What are the variuos Access Specifiers available in Java?

Java offers following four access specifiers: 1) public: public classes, methods, and fields can be....
Category: Core Java Date: 11/9/2009 6:29:07 AM
Core Java : What is the difference between static and non-static variables?

What is the difference between static and non-static variables?

A static variable is associated with the class as a whole rather than with specific instances of a c....
Category: Core Java Date: 11/9/2009 6:25:11 AM
Core Java : Can we create an abstract class with no abstract methods in it?

Can we create an abstract class with no abstract methods in it?

Yes, we can create an abstract class without abstract methods.
Category: Core Java Date: 11/9/2009 6:20:54 AM
Core Java : What is the difference between "while" and "do while" statements in Java?

What is the difference between "while" and "do while" statements in Java?

"while" statement checks the condition at the beginning of a loop to see whether the next ....
Category: Core Java Date: 11/9/2009 6:16:44 AM
Core Java : Expain each keyword of public static void main(String args[])?

Expain each keyword of public static void main(String args[])?

public: main() is the first method called by java environment when a program is executed so it has t....
Category: Core Java Date: 11/9/2009 6:12:58 AM