give three points of differentiation between:
i. integer and floating constant
ii. token and identifier
In java programming.
Answers
Answered by
3
i) Integer contstant:
• It represents whole numbers.
• The integer data type is needed to store them.
• It does require any additional symbol to be stored.
Float constant:
• It represents fractional numbers.
• The floating data type is needed here.
• It requires an additional 'f' after the value to be stored.
ii) token
• It is the smallest individual element of a program.
• It can store values,provide space, operate,etc.
• It is of six types.
identifier
• It is a type of token.
• It only stores values.
• It is of two types.
If this helps u then only mark as brainliest.
• It represents whole numbers.
• The integer data type is needed to store them.
• It does require any additional symbol to be stored.
Float constant:
• It represents fractional numbers.
• The floating data type is needed here.
• It requires an additional 'f' after the value to be stored.
ii) token
• It is the smallest individual element of a program.
• It can store values,provide space, operate,etc.
• It is of six types.
identifier
• It is a type of token.
• It only stores values.
• It is of two types.
If this helps u then only mark as brainliest.
RAHULSEN504:
thank you so very much. i shall surely mark your answer the brainliest
Answered by
1
Answer:
i.An integer is a valued number for an integer. ... Floating point is a decimal number which contains an exponent, decimal point or both. Decimal number system is the only system in which decimal data can be written off.
ii. The first category of token is an Identifier. Identifiers are used by programmers to name things in Java: things such as variables, methods, fields, classes, interfaces, exceptions, packages, etc. In a Java program, all characters are grouped into symbols called tokens.
iii.
Explanation:
hope you got it.
Please follow meee.
Similar questions
English,
8 months ago
English,
8 months ago
Science,
8 months ago
Business Studies,
1 year ago
Science,
1 year ago