|
1 |
| - |
| 1 | + |
2 | 2 |
|
3 |
| -# Basics of JAVA |
| 3 | +# Basics of JAVA |
| 4 | + |
| 5 | +In this Repo, I have provided an Overview over to the Basics of the JAVA Programming Language. And each topic is been covered together with its code explanation in the Java Files that are mentioned above. For Covering up each part the syntax will also be available. |
| 6 | + |
| 7 | +## Author |
| 8 | + |
| 9 | +- [@ackwolver335](https://github.com/ackwolver335) |
| 10 | + |
| 11 | +## 🚀 My Clone |
| 12 | +I m Programmer and Developer regarding different Computer Languages, also have worked as Digital Marketer and Content Creator. |
| 13 | + |
| 14 | +## Features of Repo |
| 15 | + |
| 16 | +- Basic Explanation of Theory |
| 17 | +- Element's Syntax |
| 18 | +- Code Examples in Java Files |
| 19 | +- Social Handles for more.. |
| 20 | + |
| 21 | +## About JAVA |
| 22 | + |
| 23 | +Java is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is intended to let application developers write once, and run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. |
| 24 | +JAVA was developed by James Gosling at Sun Microsystems Inc in the year 1995 and later acquired by Oracle Corporation. It is a simple programming language. Java makes writing, compiling, and debugging programming easy. It helps to create reusable code and modular programs. |
| 25 | + |
| 26 | +### Features of JAVA |
| 27 | + |
| 28 | +- Platform Independent |
| 29 | +- Object-Oriented Programming |
| 30 | +- Secure |
| 31 | +- Portable Code |
| 32 | +- Multithreading |
| 33 | +- Compilation and Interpretation |
| 34 | + |
| 35 | +### Java Setup : |
| 36 | + |
| 37 | +- [JDK](https://www.oracle.com/in/java/technologies/downloads/) |
| 38 | +- [Youtube Video](https://youtu.be/SQykK40fFds?si=lB66ZemBoFafi16G) |
| 39 | +- [Text Explanation](https://www.geeksforgeeks.org/how-to-download-and-install-java-for-64-bit-machine/?ref=lbp) |
| 40 | + |
| 41 | +## Basic Syntax |
| 42 | + |
| 43 | +Source Code : |
| 44 | + |
| 45 | +``` |
| 46 | +class Class_name{ |
| 47 | + public static void main(String[] a){ |
| 48 | + System.out.println("Hello World !"); |
| 49 | + } |
| 50 | +} |
| 51 | +``` |
| 52 | + |
| 53 | +- Note : Preferred to name the file as same name of the Class name containing main function. |
| 54 | + |
| 55 | +For running the Code [Window] : |
| 56 | + |
| 57 | +``` |
| 58 | +javac file_name.java |
| 59 | +java file_name |
| 60 | +``` |
| 61 | + |
| 62 | +Code Output : |
| 63 | + |
| 64 | +``` |
| 65 | +Hello World ! |
| 66 | +``` |
| 67 | + |
| 68 | +### Code Elements : |
| 69 | + |
| 70 | +Below we have the explanation regarding the key elements in the above syntax :- |
| 71 | + |
| 72 | +- class : This keyword is used for declaring the class. |
| 73 | +- public : It is type of access specifier, specifies that the class is available to all. |
| 74 | +- static : static keyword is used to make the function static, and due to this we don't have to create any object for calling it. |
| 75 | +- void : It is a return type which don't return anything to the main function. |
| 76 | +- main() : This is the method from where the execution of the program starts from, without this we used to face compile error ! |
| 77 | +- String[] args : It specific that the user may opt to enter parameters to the JAVA Program. Both forms String[] args or String args[] are acceptable by the compiler. |
| 78 | +- System.out.println : This is used to print anything on the console or the output screen. |
| 79 | + |
| 80 | +### Social Media Links : |
| 81 | + |
| 82 | +- [Instagram Page](https://www.instagram.com/coding.needs/) |
| 83 | +- [Whatsapp Channel](https://whatsapp.com/channel/0029VaA2aK7DeON5LRUhRr28) |
| 84 | +- [Discord Channel](https://discord.com/invite/CGcEFwdY) |
| 85 | + |
| 86 | +### Feedback |
| 87 | + |
| 88 | +If you wants to give any kind of feedback or query, I m surely active on my social media handles ! |
0 commit comments