Computer Science, asked by ishaan5954, 6 months ago

2. What is meant by a constant? Explain with an example.
3. What are the rules to assign a variable in Java programming?
(it's computer )
chapter-Program coding
class-8th​

Answers

Answered by Anonymous
4

Answer:

In Algebra, a constant is a number on its own, or sometimes a letter such as a, b or c to stand for a fixed number. ... Example: in "x + 5 = 9", 5 and 9 are constants.

Rules for naming variables:

After the first initial letter, variable names may also contain letters and the digits 0 to 9. ...

The name can be of any length, but don't get carried away. ...

Uppercase characters are distinct from lowercase characters. ...

You cannot use a java keyword (reserved word) for a variable name.

Answered by ghazala162004
3

Answer:

hii

Explanation:

2.In computer programming, a constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant. ... The most significant are: compile-time (statically-valued) constants, run-time (dynamically-valued) constants, immutable objects, and constant types (const)....

3.After the first initial letter, variable names may also contain letters and the digits 0 to 9. ...

The name can be of any length, but don't get carried away. ...

Uppercase characters are distinct from lowercase characters. ...

You cannot use a java keyword (reserved word) for a variable name...

hope this helps u ✌️❤️❤️

Similar questions