-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidentifiers.java
More file actions
64 lines (42 loc) · 1.19 KB
/
identifiers.java
File metadata and controls
64 lines (42 loc) · 1.19 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
public class identifiers {
public static void main(String[] args) {
//String first name = " shainky "// no white space is allow
String firstname = " shainky";
final double INTEREST_RATE = 8.9;// constant not be changed
System.out.println("hello world");
//1. there are 53 keyword in java
//2. and 8 data type
//3 . these are all the identifiers
// public-keyword
//class-keyword
//class name-name of a class or user defined
//static- keyword
//void-keyword
// main-name of a method- or user defined
//string- name of a class - API class- java.lang.String-predefined
//args-variable of type String
//system-name of a class - java.lang.system- predefined class
//out-variable-system-static
//println-name of a method- predefined method-printStream
//hello java-literl or string literal
// variable = hold a data iteam of some type
// String[] args
// int x;// whole
//double age;// number
//boolean status;//{true,false}
//data typ:identifier(keyword)
// variable declaration
int age;
String name;
boolean status;
//initialiazation
int a = 1;
float b = 3.14f;
double salary = 6789;
// variable assignment
age = 90;
status = false;
// constant
//1. final
}
}