-
Notifications
You must be signed in to change notification settings - Fork 3
/
JavaLecture3.java
35 lines (26 loc) · 1.34 KB
/
JavaLecture3.java
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
// package com.rit;
import static java.lang.System.out;
// import static java.lang.System.in;
// import static java.lang.System.err;
// import static java.lang.System.*;
public class JavaLecture3 {
public static void main(String[] args) {
// java.lang.System.out.println("Hi Java");
// System.out.println("Hi Java");
out.println("Hi Java");
// java.lang --- Package
// System --- Class (The System class contains several useful class fields and methods. It cannot be instantiated.)
// --- Among the facilities provided by the System class are standard input, standard output, and error output streams.
// out --- Field (The "standard" output stream.)
// println() --- Method (Prints a String and then terminate the line. This method behaves as though it invokes print(String) and then println().)
// com.rit --- Package
// Main --- Class
// main() --- Method
// Method / Function -> A block of code that performs a task
// Class -> A container for related functions / methods
// Package -> A Group of related classes
// Naming Convention
// Classes -> PascalNamingConvention
// Methods -> camelNamingConvention
}
}