Home Answers Viewqa Java-Interview-Questions Java numeric promotion

 
 


neelam
Java numeric promotion
1 Answer(s)      2 years and 8 months ago
Posted in : Java Interview Questions

What is numeric promotion?
View Answers

October 22, 2010 at 4:47 PM


Hi,

Here is the answer.

Numeric promotions are used to convert the operands in a numeric expression to a common type before an operation is performed between the operands.

Numeric promotion is a property of the specific definitions of the built-in operations and not a Java language feature. It is applied to the operands of an arithmetic operator. 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.

Thanks.









Related Pages:
java numeric promotion
java numeric promotion  What is the numeric promotion
Java numeric promotion
Java numeric promotion  What is numeric promotion
What is numeric promotion?
What is numeric promotion?   Hi, What is numeric promotion? Thanks,   Hi, The numeric promotion in java used to convert the smaller number type to larger numeric types. In numerical promotion in java program we
Numeric Data Types
Numeric Data Types  Compare numeric data types of java with corresponding data types in C
Java Numeric Pyramids - Java Beginners
Java Numeric Pyramids  Hi! I'm a beginner in Java can somebody help with these two pyramids, I just can't find the right code. Here's the first one. 0 90 890 7890 67890 56789 4567890 34567890 234567890 1234567890
Allow to Enter only numeric data.
Allow to Enter only numeric data.  hi....... I want to ask... that the user should allow to enter only numeric data. I mean to say that if user... that enter only numeric data. So how this can be done? what will be the code
Java: Numeric Expression Answers
Java NotesNumeric Expression Answers Name ______________________ Assume the following: int i, j, k; byte by; double d; float f; k = 10; j = 6; f = 3.9F; d = 6.2; Give the values of the following expressions, or illegal. 171 + 2 * 3
Underscores in Numeric Literals
Underscores in Numeric Literals In this section, you will learn about how you can use underscore in Numeric Literals in Java SE 7. In Java SE 7,  You can place any number of underscore( _ ) between digits of numeric literals
Random alpha numeric string of fixed size
In this section, you will learn to generate fixed size alpha numeric string using core Java code
Programming: Numeric Conversion
Java NotesProgramming: Numeric Conversion Name ________________________________ Description Write a program which converts a measurement from one system of units to another. Read a number (or numbers) in one system and output
Programming: Numeric Conversion
Java NotesProgramming: Numeric Conversion Name ________________________________ Description Write a program which converts a measurement from one system of units to another. Read a number (or numbers) in one system and output
Web Promotion Plans
Web Promotion Plans Price Basic Standard
Web Promotion Services,Website Promotion Services,Website SEO Promotion Services India
Website Promotion Services If you have developed... to adopt the formula of website promotion. Website promotion is the only one.... There are many ways of website promotion. But using the killer keywords and punching
Web Site promotion services at roseindia.net
Welcome to RoseIndia.net Web Promotion Company Our Web site services will help you get listed in major search engines and directory of the world. Our own site traffic comes from the major search
Java File Binary
Java File Binary In this section, you will learn how to write numeric data into the binary file. Description of code: Numeric data converts compactly and faster in a binary format than the text. In the given example, at first, we have
The easy slider plug-in implementing with numeric boxes
The easy slider plug-in implementing with numeric boxes In this tutorial... with numeric boxes.In this example, easySlider plug in used to develop automatic... using easySlider function of jQuery. The numeric boxes highlighted according
how to get a numeric value from a message - JSP-Servlet
how to get a numeric value from a message  dear sir, I have to get a numeric value from a following message matter i.e Dear [1], Your cl is [2] ,el is [3],bonus is[4] Regards HR. This message
Java Convert Number to Words
Java Convert Number to Words In this section, you will learn how to convert a numeric value into its equivalent words. The words of the numbers(1-100) are generally accepted. However, once a number to be converted reaches a value
Date Class with multiple numeric parameter constructor
.style1 { font-size: medium; } Date class with multiple numeric... Date class object and pass multiple numeric parameters as  the year, month... of the midnight to the related date. This is the example of multiple numeric
Convert String To Double
; In this section, we are going to convert a numeric type string value...: This program simply takes a numeric type string at the console with the "Enter numeric type string value:" message and it converts into a double
Convert String To Float
;java StringToFloat Enter the numeric type string value: 50...;    In this section, you will learn to convert a numeric... a numeric type string at the console. The valueOf() method takes a string type
Acucorp - ACUCOBOL-GT Eclipse Plug-in
the creation, evolution, and promotion of the Eclipse Platform. The Eclipse Platform... includes Java development tools, but its architecture allows users to add other... the Eclipse IDE, the same interface that supports Java development. Come for more
Convert String To Long
;  In this section, we are going to convert numeric type string..., define a class named "StringToLong" for java component. Program takes... this program: Output this program.  C:\corejava>java
B - Java Glossary
B - Java Glossary       Java bigdecimal When working with financial, business applications, the programmer should know about the BigDecimal class and numeric formatting
Convert Object to Int
; In this section, we are going to learn to convert a numeric string type...; Code Description: The following program converts numeric string type object...() method of an Integer class takes a numeric string object and returns
Core Java Interview Question, Interview Question
: What is numeric promotion? Answer: Numeric promotion is the conversion... Core Java Interview Question Page 22  ...: A compilation unit is a Java source code file. Question: What interface
Core Java Interview Questions Page 2, Core Java QuestionQ
promotion? Answer: The Numeric promotion is the conversion of a smaller numeric type... Core Java Interview Questions -2  ... classes and it is highest-level class in the Java class hierarchy. Instances
Indian Software Development Company
Services in India including Website Designing and Development, Web Promotion... (SEM) Web promotion Services Software development is a brainstorming... and LINUX / UNIX platforms. We basically concentrate on Java based technology to meet
Rose India ? About Us
of services including Website Design and Development, Web Promotion Services... Services Website Development Services Website Promotion Services... like PHP, Java/J2EE/JSP/Java Script, Visual Basic/ASP, C/C++, XML/XSLT, HTML
java code
java code  Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results
java program
java program  . Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results
Java program
Java program  Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results
Pattern class - Java Interview Questions
Pattern class  1)Write a program to find out numeric occurences in an input file by using pattern class
ZipCodeValidator in Flex4
ZipCodeValidator in Flex4: The ZipCodeValidator class validates the correct length of the numeric value. It checks the length for a five-digit ZIP code, a five-digit+four-digit United States ZIP code. The tag of ZipCodeValidator
MX AnimateProperty in Flex4
MX AnimateProperty Effect in Flex4: The AnimateProperty Effect is used to animate a numeric property of a component. The tag of Animateproperty is <mx:Animateproperty>. In this example we use the scaleX property for animate
SEO Company Delhi,SEO Services India,SEO Consultant India,Cheap Seo Services India
the leading free Java Tutorial website. RoseIndia.net is also very... popular websites, these are: www.javajazzup.com (Free Online Java... For better promotion of any site, Search Engine Optimization is the best
java
/TR/html4/loose.dtd"> <%@ page language="java" import="java.sql.*"%> <title>...;IP Address</td> <td><input type="numeric" name...; <td><input type="numeric" name="Subnetmask" value="" size="20">
JAVA with HTML
JAVA with HTML  Hello I want an JAVA example that would convert any UNICODE character OR STRING into its Equivalent HTML Numeric[ASCII] values... Like for character ? it's equivalent value is آ like all the other
java - Java Beginners
java  Hi sir .. Write a program in java for Password Generator that should ask from user in the format as given below. Please reply with output...:- Numeric/Alphabetic/Alphanumeric Password Length:- User specifies
Java & OOPs
, because not all values in Java are Objects. For example, the basic numeric types...Java & OOPs  Is JAVA a fully Object Oriented Language? or A what degree Java supports Fully OOPs concept?   Java is not a fully object
java
must be numeric. Grade: 70 Credits: 3 Enter Another Course? (Y/N) y Data for Course... must be numeric." should be displayed. o The user is continually prompted until
java - Java Beginners
java  Ques-Give the output of the following code : class numeric { static int fact (int n) { int p=1; int i=n; while (i >=2) { i--; p=p*i... of a number: class numeric { static int fact (int n) { int fac=n; for(int i=n
Java Project Questions - Java Beginners
Java Project Questions  Hello sir ,I want Course Form in JAVA SWING that includes following contents- 1)Course Id -Numeric 2)Course NAME-TEXT 3)Course Duration-NUMBERS 4)Course Fees-NUMBERS I want to to add,Update,Delete
java swings - Java Beginners
java swings  Hi, I have the code jtextfield validation.From this code the jtextfield only allowed 10 characters for numeric values. Its... { CODE.setEditable(false); ; LBL.setText("* Enter only numeric characters
java programe - Java Beginners
java programe  write a java programe to compute n! for any number. 1! 2!=2*1 3!=3*2*1 n!=n*(n-1)(n-2)   //int type is limited so... a numeric value
SQL ROUND Function
SQL ROUND Function       Round Function in SQL is used to round a numeric field to the nearest decimals specified. Understand with Example The Tutorial illustrates an example from
java beginners - Java Beginners
java beginners  is there any other way to do this ? i want to do by using charAt() function and by decreasing the ascii code by 2 . Write... (a to z) or numeric digit (0-9) by previous two places. For example : C to A, M
Java code
Java code  Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results.   Hi Friend, Try
Java JTextField Validation - Java Beginners
Java JTextField Validation  Hello Sir ,How I can Validate JTextField In Java,when I enter Any Character value in JTextField ,I want To Display MsgBox ("Enter only Numeric Value") for Id Field ,How I can Validate that plz Help Me
java swings - Java Beginners
java swings  Hi, I need the sample code for Jtext box validation...("* Enter only numeric characters"); } } }); show... { CODE.setEditable(false);; LBL.setText("* Enter only numeric