Computer Science, asked by Anonymous, 8 months ago

What are literals in Java??

Gud night vaibhav.....❣❣​

Answers

Answered by bhagwanmalviya5
3

Answer:

gud night vaibhav and ishika❤

Explanation:

plz follow me and mark me as brainlist...

Answered by GK1971
2

Answer:

Hello There,

This is your answer.

Explanation:

A literal is a source code representation of a fixed value. They are represented directly in the code without any computation. Literals can be assigned to any primitive type variable.

Literal : Any constant value which can be assigned to the variable is called as literal/constant.

Here 100 is a constant/literal.

int x = 100;

Types Of Literals:

1) Decimal literals

2) Octal literals

3) Hexa - decimal literals

4) Binary literals

HOPE THIS ANSWER HELPS YOU!!!

GOOD NIGHT DEAR FRIEND!!!

Similar questions