What is numeric promotion?

Ads
 

What is numeric promotion?

Hi,

What is numeric promotion?

Thanks,

View Answers

April 17, 2013 at 11:20 AM

Hi,

The numeric promotion in java used to convert the smaller number type to larger numeric types. In numerical promotion in java program we converting the byte, char, and short values into int values. We also convert the int values in to long values, if necessary. The long and float values are converted to double values, as per the need.

For more details: http://www.roseindia.net/java/jdk7/UnderscoresinNumericLiterals.shtml

Thanks,

Ads









Related Tutorials/Questions & Answers:
What is numeric promotion?
ModuleNotFoundError: No module named 'django-oscar-promotions'
Advertisements
Numeric Data Types
ModuleNotFoundError: No module named 'Numeric'
ModuleNotFoundError: No module named 'Numeric'
Allow to Enter only numeric data.
ModuleNotFoundError: No module named 'js.jquery_numeric'
ModuleNotFoundError: No module named 'numeric-version'
ModuleNotFoundError: No module named 'js.jquery_numeric'
ModuleNotFoundError: No module named 'js.jquery_numeric'
ModuleNotFoundError: No module named 'numeric-version'
ModuleNotFoundError: No module named 'django-admin-numeric-filter'
ModuleNotFoundError: No module named 'django-admin-numeric-filter'
ModuleNotFoundError: No module named 'hydratk-lib-numeric'
Underscores in Numeric Literals
Random alpha numeric string of fixed size
ModuleNotFoundError: No module named 'odoo12-addon-web-widget-numeric-step'
what is bit
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
What is procedure
what is hibernate.archive.autodetection
what is collections?
what are indices?
What is Hibernate
What is Hibernate
What is Hibernate
What is Hibernate

Ads