java-tut-initializing-variables-data-types-1
public class Beginner
{
boolean booleanVar = true;
byte byteVar = 100;
short shortVar = 1000;
int intVar = 1000000;
long longVar = 100000000L;
//more codes here later...
public static void main(String[] args)
{
Beginner beginner;
beginner = new Beginner();
//more codes here later...
}
}
{
boolean booleanVar = true;
byte byteVar = 100;
short shortVar = 1000;
int intVar = 1000000;
long longVar = 100000000L;
//more codes here later...
public static void main(String[] args)
{
Beginner beginner;
beginner = new Beginner();
//more codes here later...
}
}