Java: A platform for platforms
Sun's reorg may seem promising to shareholders but it's also a scramble for position. The question now is whether Sun can, or wants to, maintain its hold on Java technology. Especially with enterprise leaders like SpringSource and RedHat investing heavily in Java's future as a platform for platforms

Also see:

Discuss: Tim Bray on 'What Sun Should Do'

Newsletter sign-up
View all newsletters

Sign up for our technology specific newsletters.

Enterprise Java
Email Address:

Study guide: Non-object-oriented language basics, Part 1

Brush up on Java terms, learn tips and cautions, review homework assignments, and read Jeff's answers to student questions

  • Digg
  • Reddit
  • SlashDot
  • Stumble
  • del.icio.us
  • Technorati
  • dzone

INDEXHEAD: Glossary of terms

comment
A combination of symbols and a source code description that clarifies some part of a program.


escape sequence
A specially coded character surrounded by single quote characters.


identifier
A sequence of characters that names a variable, method, class, interface, or package.


literal
A character sequence that composes a data item at the source code level.


type
A set of data items, along with any operations that can be legally applied to that set.


Unicode escape sequence
A character sequence in the form \uxxxx, where each x represents a hexadecimal digit.


variable
A named memory location (of a specific type) that stores either a single data item (if the variable is nonarray) or multiple data items (if the variable is array).


INDEXHEAD: Tips and cautions

These tips and cautions will help you write better programs and save you from agonizing over why the compiler produces error messages.

Tips

Always document your source code with comments.

Cautions

Do not attempt to modify a final variable after it has initialized. Subsequent attempts to modify a final variable result in compiler errors.

INDEXHEAD: Homework

Experiment with the CIDLV program to learn more about the topics covered in "Non-Object Oriented Language Basics, Part 1." Access the program by downloading http://www.javaworld.com/javaworld/jw-12-2000/java101/java101.zip.

Investigate the official Java Language Specification to learn more about comments, identifiers, data types, literals, and variables. Also read what the specification says about operators and expressions (topics covered in "Non-Object Oriented Language Basics, Part 2").

Is it necessary to always initialize final variables?

  • Digg
  • Reddit
  • SlashDot
  • Stumble
  • del.icio.us
  • Technorati
  • dzone
Comment
Login
Forgot your account info?
Add comment
Anonymous comments subject to approval. Register here for member benefits.
Have a JavaWorld account? Log in here. Register now for a free account.
Resources