Declaring Variables, helloMessage variable is declared as a local variable - Java Object Oriented Design

Java examples for Object Oriented Design:Field

Description

Declaring Variables, helloMessage variable is declared as a local variable

Demo Code

public class HelloApp {
  public static void main(String[] args) {
    String helloMessage;//from w ww .jav a2s  .  c  o m
    helloMessage = "Hello, World!";
    System.out.println(helloMessage);
  }
}

Related Tutorials