forked from pikachu-17/java-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrimitives.java
More file actions
26 lines (22 loc) · 885 Bytes
/
Primitives.java
File metadata and controls
26 lines (22 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
public class Primitives {
public static void main(String[] args) {
int rollno =64;
char letter ='r';
float marks =98.57f;
double largeDecimalNumbers = 458496763.487368975;
long largeInteger = 451545412185178822L;
boolean check =false;
//wrapper classes
//datatypes with first letter uppercase
//used to access some special functions
// Integer rno =64;
// rno.byteValue();
//primitive data types
// data types which cannot be further broken into parts is known as primitives
//String can be broken into char so it is not primitive
//integer cannot be broken into further parts so it is primitive.
/*multiline comments can
* be written inside it
* also another asterisk is required for every line.*/
}
}