Computer Science, asked by janashin28, 1 year ago

what are literals in Java ​


janashin28: tell the answer
janashin28: what happened yaar
iamKapilFan: hii
iamKapilFan: sorry yrr
iamKapilFan: but Notifications are not coming
janashin28: it's ok
janashin28: hi
janashin28: what happened
janashin28: sleep forever
iamKapilFan: hii

Answers

Answered by iamKapilFan
5

Answer:

Java Literals are syntactic representations of boolean, character, numeric, or string data. Literals provide a means of expressing specific values in your program. For example, in the following statement, an integer variable named count is declared and assigned an integer value.

HOPE THIS WILL HELP YOU


iamKapilFan: hello dear ❤️❤️❤️
janashin28: yes
iamKapilFan: @janu
janashin28: hi
iamKapilFan: r u there
iamKapilFan: hii
janashin28: kkrh
janashin28: obiausly
janashin28: where are you
iamKapilFan: there
Answered by cyrusbishop
1

Answer:

Literals which is often referred to as constants are data items that are fixed data values.

Explanation:

There are different types of literals like Real literals.

They are numbers having fractional parts. These may be written in one of the two forms called fractional form or the exponent form.

A real literal in fraction form consists of signed or unsigned digits including a decimal point between digits.

Similar questions