Variables and data types in java

class Home{
	public static void main(String args[]){
		String username;
		int age;
		double salary;
		char gender;
		boolean isLogin;

		username="Rama";
		age=20;
		salary=239098.90;
		gender='M';
		isLogin=true;

		System.out.println("User Name: "+username);
		System.out.println("Age: "+age);
		System.out.println("Salary: "+salary);
		System.out.println("Gender: "+gender);
		System.out.println("isLogin: "+isLogin);

	}
}
© 2016 - 2022, All Rights are Reserved.