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

what is the difference between applet and swing and gui application in java . What we do with the collections set and list interface

2 Answers   CTS, Phoenix Technologies,


Why is multithreading important?

0 Answers  


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

0 Answers  


Howmany address lines are required to addressing 1 MB memory?

8 Answers   Beatroot Technologies, CSC, HCL, Hexaware, IBM,


Are registers volatile?

0 Answers  


What happens when the main() isn't declared as static?

1 Answers  


What is the synonym of string?

0 Answers  


how to handle exceptions in core applications?

2 Answers   CSS,


How many types of design patterns are there?

0 Answers  


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

0 Answers   Bravura Solutions,


What is scope & storage allocation of static, local and register variables? Explain with an example.

0 Answers   IBS,


Does google use java?

0 Answers  


Categories