Overview of Java Programming
Week 1:
1.1: Overview of Java Programming in simple words
Java programming is a popular programming language used to develop software applications for various platforms. Java is known for its "write once, run anywhere" feature, which means that once a Java program is written, it can be run on any platform without the need for modification. Java is also an object-oriented programming language, which means it is based on the concept of objects and classes that can be used to create complex and scalable applications. In simple words, Java programming involves writing code using the Java programming language to create software applications for desktop, mobile, and web platforms.
1.2: how to install java jdk in window 10 2023
Visit and download latest version the Oracle Java SE Downloads page
Single Click Download:
it download for you jdk.exe file
OR
Visit Oracle site:
Visit site : CLICK HERE
- Under the Java SE Development Kit section, select the latest version of the JDK that is compatible with your system architecture (32-bit or 64-bit) and click the download button.
- Read and accept the license agreement, then click on the download link for your system architecture.
- Once the download is complete, double-click the downloaded file to begin the installation process.
- Follow the instructions in the installation wizard, selecting the appropriate options for your needs.
- When prompted, choose the installation location and click on "Next" to
- proceed.
- Once the installation is complete, you can verify that Java JDK is installed correctly by opening a command prompt and typing "java -version". This should display the version of Java that is currently installed on your system.
That's it! You should now have Java JDK successfully installed on your Windows 10 computer.
// Class declaration
public class MyClass {
// Main method declaration
public static void main(String[] args) {
// Print statements
System.out.println("Hello, World!");
}
}
This code demonstrates the basic elements of Java syntax, including comments, class declaration, method declaration, variable declaration, print statements, if statement, and for loop. Note that in Java, all statements must end with a semicolon
Post a Comment