Introduction of java Programming language.
■》Variables & Data Types & constant -> ● Variables-> ○ A variable is a container (storage area) used to hold data. ○ Each variable should be given a unique name (identifier). ■ Program-> public class Main { public static void main(String[] args) { // Variables String name = "ved"; int age = 19; float price=399.50; String neighbour = "duggu"; String friend = "shourya"; } } ● 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 : 1● Primitive Data types : to store simple...
Comments
Post a Comment