what are literals in java?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is singleton thread safe in java?

549


Why string objects are immutable in java?

567


Why do we use variables?

515


When throw keyword is used?

592


What is compiler and what its output.

636






What is method overloading in java ?

562


What are the main differences between notify and notifyAll in Java?

583


What is the difference between synchronized and synchronized block?

503


Can we use String with switch case?

668


Why java is made?

569


What is the difference between throw and throws keywords?

576


Can java inner class be static?

557


Which class is the superclass for all the classes?

535


Explain about field hiding in java?

526


How is abstraction implemented in java ?

546