Java - Introduction to Programming
Lecture 1
Installation & First Program
Install Java
a. Install JDK (https://www.oracle.com/in/java/technologies/javase-downloads.html)
b. Install IntelliJ (https://www.jetbrains.com/idea/download/#section=mac)
OR
b. Install Visual Studio Code (VS Code) - Prefer THIS (https://code.visualstudio.com/download)
Sample Code
Functions
A function is a block of code which takes some input, performs some operations and returns some output.
The functions stored inside classes are called methods.
The function we have used is called main.
Class
A class is a group of objects which have common properties. A class can have some properties and functions (called methods).
The class we have used is Main.
Our 1st Program
public class Main {
public static void main(String[] args) {
// Our 1st Program
System.out.println("Hello World");
}
}
Java is a programming language that is used to create software applications. Java also has one of the largest installed bases of all programming languages, and its use can be found in many different domains.
Java installation varies depending on your operating system and what version of Java you are installing.
—
Java is a programming language that was designed to be easy to learn. It is one of the most popular languages in use today. Java is typically used for applications that need a robust, cross-platform environment, such as desktop apps and web apps.
Java code can be compiled into bytecode or interpreted at runtime by a Java Virtual Machine (JVM). It can also be used with other languages like C++, Python or Ruby in an IDE like Eclipse or Netbeans.
—
Java is a programming language and computing platform. Java is mainly used for developing desktop, web applications, enterprise software, and mobile applications.
Java was originally designed to work on the end-user's computer. But now it can also be used to deploy Java programs on a wide variety of devices like smart TVs, set-top boxes, printers, Blu-ray players and more.
Developers use Java to create cross-platform applications that can be executed on any device that supports Java without the need for recompilation.
Others link:-
- insertion sort time complexity
- Inheritance | types of inheritance | inheritance in python
- Polymorphism in java | polymorphism genetics
- OBJECT ORIENTED PROGRAMMING SYSTEMS JAVA| oops concepts with real time examples
- Selection Sort Algorithm | Sorting in JAVA
Comments
Post a Comment