forked from brainmentorspvtltd/RKGIT-FullStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstClass.java
More file actions
21 lines (19 loc) · 760 Bytes
/
FirstClass.java
File metadata and controls
21 lines (19 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Java OOPS
// class - keyword
// class name - pascal case
class SecondClass{
// main() is a method - entry point
// void - keyword - no return
// static - when u run any program so that program must be load first
// during load time static things will be loaded first.
// public - access with the package / folder and outside the package.
// String args[] - Command line arguments
// Get Arguments for your own commands
// Most of time arguments are string (collection of chars)
// String is a class.
// args- name of argument (Parameter ), it can be anything.
// args can be n that's why Array.
static public void main(String ...arguments){
System.out.println("Hello Java");
}
}