Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Declaring Java Variables


class HelloWorld {
    public static void main(String[] args) {
String a = "aaaa";
int num = 123;
final String cons = "I am constant";

System.out.print(a);
System.out.print(num);
System.out.print(cons);
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Declaring #Java #Variables
ADD COMMENT
Topic
Name
4+5 =