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

What are the 6 boolean operators?

547


Which is a valid identifier?

536


Why do we need data structure in java?

566


What is mean by collections in java?

562


What is the differences between heap and stack memory in java? Explain

527






Is stringwriter thread safe?

548


What is balanced tree in java?

526


What is the difference between compile-time polymorphism and runtime polymorphism?

557


Is multiple inheritance supported by java?

502


What is functional interface in java example?

527


which pattern is default in scanner package?

1795


What is difference between equals and hashcode method?

566


How does queue work in java?

525


What is a "pure virtual" member function?

594


Which browsers work with java?

559