• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Literals in Java

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam sorry for this simple question.as being under the learning stage ihave seen many books referring to this topic but nobody explains what is literals.
What does exactly literals stands for in java language.where is it exactly used by java(i.e compilers..).What is the exact use of the literals in java
thanks in advance............
------------------
 
Sadashiv Borkar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
nobody has answer my question i think is there any problem in this question???
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Sadashiv,
i think this question would have been answered in Beginners forum.
i redirect u to the Java Language Specification Page for Literals where all u r doubts will be clarified
http://java.sun.com/docs/books/jls/html/3.doc.html#48272
a simple difinition for a literal is
A literal is the source code representation of a value of a primitive type , the String type , or the null type

Rahul
 
reply
    Bookmark Topic Watch Topic
  • New Topic