-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
64 lines (58 loc) · 1.4 KB
/
App.java
File metadata and controls
64 lines (58 loc) · 1.4 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
58
59
60
61
62
63
64
package com.company;
/*
? Package
A package in Java is used to group related classes.
Think of it as a folder in a file directory.
*/
/*
? Class
A class is a template for objects.
It is a collection of variables and methods.
A class is a blueprint from which individual objects are created.
*/
/*
? Naming Conventions:
* Class Names - PascalCase
* Method/Function Names - camelCase
*/
/*
? Anatomy of a Java Program
* Documentation Section
* Package Statement
* Import Statements
* Interface Statements
* Class Definitions
* Main Method Class
* {
* Main Method Definition
* }
*/
/*
? Data Types
* Primitive Data Types
* Integer Types
* byte (1 byte)
* short (2 bytes)
* int (4 bytes)
* long (8 bytes)
* Floating Point Types
* float (4 bytes)
* double (8 bytes)
* Character Type
* char (2 bytes)
* Boolean Type
* boolean (1 byte, but 1 bit is used)
* Non-Primitive Data Types
* String
* Arrays
* Classes
* Interfaces
* Enumerations
* Annotations
* Lambda Expressions
*/
public class App {
public static void main(String[] args) { // main() method is the entry point of the program
System.out.println("Hello, World!");
}
}