Computer Science, asked by ArmyOt, 1 month ago

what is variables and literals in java??!! explain it


Answers

Answered by shrutianand26
3

Explanation:

1.4 Variables and Literals

A variable is a container that holds values that are used in a Java program. A variable declaration tells the compiler the variable's name and the type of data it will hold. In this statement int stands for integer so rollno will only be used to hold integer numbers.

hope it's helpful

please mark me brainlist

Answered by Anonymous
4

Dàta typès are those which specîfy the typè of dàta represènted by thè vàriable ànd literàl is thè thàt is stòred in to the variàble. A literàl is a sóurce còde representatíon of a fíxed vàlue. ... Literàls can be assîgned to any prîmitive typ3 variàble.

Similar questions