The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

literals, operators and transient variables

Posted by Jody Brown on December 09, 2000 at 12:42 PM

Devashish,

A literal describes a constant value. Types of literals include 100, 0, -15 - Integer literals
'g', ')', '&' - Character literals
"Hi there" "world!" - String literals.

Operators, such as +, -, ++, ==, are used to perform operations on literals, and objects.

Transient variables are declared on serialized (persistent) objects. If you dont want a particular variable of that object persisted - maybe a password the object stores - you can declare it as transient.

Hope this helps,

Regards,

Jody





Replies:
  • EJB Nick Gentile June 07, 2001 at 3:01 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us