Back to Browse

Data Types in Java | Java Tutorial for Beginners | G C Reddy |

277 views
Sep 11, 2020
40:55

https://gcreddy.info/java-data-types/ What is Data Type? Data Type is a classification of the type of data that a Variable or Constant or Method can hold in computer programming. Data: Character (char)- Y/7/* Text (String) - India/India123/India123#$% Number (Integer data types - byte, short, int, long) Number with Decimal places (Relational Data types - float, double) Logical data (boolean data type - boolean (true/false) Date - Object etc... Data Types specify the different sizes and values that can be stored in the variable Size of Data - 100/India/ Type of Data - Numeric, Alphabets, Alpha-numeric, Special characters Range of Data - 180 to 365 days The syntax for Declaring data types with variables dataType varaibleName; Or dataType varaibleName=value; Or dataType varaible1Name, varaible2Name, varaible3Name; Or dataType varaible1Name=value, varaible2Name=value, varaible3Name=value; Example: int a; a=100; int b=200; int c, d, e; c=10; d=20; e=30; int f=100, g=200, h=300; System.out.println(a+b+c+d+e+f+g+h);

Download

0 formats

No download links available.

Data Types in Java | Java Tutorial for Beginners | G C Reddy | | NatokHD