-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathFirst.java
More file actions
26 lines (24 loc) · 758 Bytes
/
First.java
File metadata and controls
26 lines (24 loc) · 758 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
//import java.io.InputStream;
//import java.lang.*; By Default
class Second{
// public , static , void keywords
// public - access outside the folder (Package)
// static - load when class is loaded.
// void - no return
// main - Entry point of Java Program
// ... var args (Java 1.5)
// String ...arr or String args[] or String [] args
// but all things are called Command Line Arguments
static void main(){
System.out.println("My Main Fn");
}
public static void main(String ...arr){
//System s = new System();
//InputStream is = System.in; // Input
//is.read();
//System.in.read(); // Single Byte Input
System.out.println("Hello Java ");
main();
//System.err.println("Error");
}
}