Java - Introduction to Programming Lecture 2 Variables & Data Types Variables A variable is a container (storage area) used to hold data. Each variable should be given a unique name (identifier). package com.apnacollege ; public class Main { public static void main (String[] args) { // Variables String name = "Aman" ; int age = 30 ; String neighbour = "Akku" ; String friend = neighbour ; } } Data Types Data types are declarations for variables. This determines the type and size of data associated with variables which is essential to know since different data types occupy different sizes of memory. There are 2 types of Data Types : Primitive...
A student of engineering and I am interested in coding specially in java. I have been working on this blog for the past few months and I have learned a lot about java and now I will try to help you to crack placement's. The blog will cover different types of java coding programs, their features, benefits, and why they are important. we have the best java placements solutions also.