Java

  1. Home
  2. Computing & Technology
  3. Java
photo of Paul Leahy

Paul's Java Blog

By Paul Leahy, About.com Guide to Java

Java Term of the Week: Strongly Typed

Saturday November 22, 2008

Java is a strongly typed programming language because every variable must be declared with a data type before it can be used. Once it is declared, the data type of the variable cannot change. The variable will only be able to hold values that correspond to that data type. For example, the String variable "myDataType":

String myDataType = "Yippee I have a data type";

cannot suddenly start accepting int values:

myDataType = 123; //error: incompatible types

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Java

About.com Special Features

Java

  1. Home
  2. Computing & Technology
  3. Java

©2009 About.com, a part of The New York Times Company.

All rights reserved.