File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is "literal" means ?

 
Nakata kokuyo
Ranch Hand
Posts: 465
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, can someone please tell what exactly means when the term "literal" use in programming world ..is that means of constant or string?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to section 3.10 of the Java Language Specification, "A literal is the source code representation of a value of a primitive type (�4.2), the String type (�4.3.3), or the null type (�4.1)."

So basically, a literal is a specific value in the source code. For example, in the line int x = 10;, the "10" is an int literal. Or in the line System.out.println("abc");, the "abc" is a String literal.
 
Nakata kokuyo
Ranch Hand
Posts: 465
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you , marc weber
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic