what are literals in java?

Answers were Sorted based on User's Feedback



what are literals in java?..

Answer / dipty

Literals are the values assigned to variables.
int num = 10;
Here 10 is the interger literal.

Is This Answer Correct ?    14 Yes 2 No

what are literals in java?..

Answer / b m doss

Integer literals
String literals
char literals
Boolean literals
Floating-point literals

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Core Java Interview Questions

How many decimal places is a double?

0 Answers  


why java is better then .net?

5 Answers   HCL, iGate,


What does exp mean in math?

0 Answers  


How do I know if java is installed?

0 Answers  


System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0

8 Answers   Accenture,






What is Interface?

8 Answers   BMC,


Explain the advantages of packages in java?

0 Answers  


What are the 7 types of characters?

0 Answers  


Where can I find data structures question and answers with comprehensive working code written in Java

0 Answers   Amazon,


Is a char always 1 byte?

0 Answers  


What is difference between Iterator and for loop

9 Answers   HP,


What are the override methods in Object class?

2 Answers   Tech Mahindra, Wipro,


Categories