Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
49 views

Java Programming

The document provides an introduction to Java programming, including that Java runs on more than 1 billion devices as the Android operating system uses Java APIs, and outlines an agenda covering why to use Java and how to get started writing a first program. It also discusses programming tools for Java development and includes an example of a simple Java program that prints "Hello World!" to explain basic Java concepts like classes, methods, and using System.out.println to print output.

Uploaded by

Sanket Mani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Java Programming

The document provides an introduction to Java programming, including that Java runs on more than 1 billion devices as the Android operating system uses Java APIs, and outlines an agenda covering why to use Java and how to get started writing a first program. It also discusses programming tools for Java development and includes an example of a simple Java program that prints "Hello World!" to explain basic Java concepts like classes, methods, and using System.out.println to print output.

Uploaded by

Sanket Mani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CODE ISE

Java
Programming

Agenda
Fun Fact: Today, Java rationally runs
on more than 1 billion as the Android
operating system of Google uses
Java APIs.

Introduction Programming Tools

Why use Java Getting Started, write your first


Program
Introduction
Java is a programming language which
allows to create programs.
Java is Object Oriented. However, it is not considered as pure
object-oriented as it provides support for primitive data types
(like int, char, etc)

The Java codes are first compiled into byte code (machine-
independent code). Then the byte code runs on Java Virtual
Machine (JVM) regardless of the underlying architecture.

Java syntax is similar to C/C++. But Java does not provide low-
level programming functionalities like pointers. Also, Java codes
are always written in the form of classes and objects.
Why use Java

Java is widely used Java's massive Item Oriented


in enterprises ecosystem with loads Secure Java
of high-quality Memory distribution
libraries and Multithreaded
If you are beginning, Java has frameworks. Java gives
great community resources Automatic Garbage
and support. Most IDEs have Even if we only talk about web Collection
wonderful support for both frameworks, you have an
languages. Remember the extremely wide range of
golden rule - when you are frameworks to choose from:
Spring, Quarkus, Micronaut, Vertx, Advantages of JAVA :
stuck, go take a walk.
Helidon and many more..
Programming Tools
IntelliJ and Eclipse both have free
versions.

Don't recommend VS Code for Java


because it really doesn't offer the
refactor functionalities that IDEs
offer.

But, In the beginning IDEs kind of


make things easier and you don’t get
the full idea or experience, while if you
use VS Code or a text editor, you
learn how to create classes, do file
management, and learn how to do
voids yourself.
class Simple{
Hello public static void main(String args[]){
System.out.println("Hello Java");

World! }
}

Let's see what is the meaning of class, public, static, void, main, String[],
System.out.println().

class keyword is used to declare a class in Java.


public keyword is an access modifier that represents visibility. It means it is visible
to all.
static is a keyword. If we declare any method as static, it is known as the static
method. The core advantage of the static method is that there is no need to create
an object to invoke the static method. The main() method is executed by the JVM,
so it doesn't require creating an object to invoke the main() method. So, it saves
memory.
void is the return type of the method. It means it doesn't return any value.
main represents the starting point of the program.
String[] args or String args[] is used for command line argument.
System.out.println() is used to print statement. Here, System is a class, out is an
object of the PrintStream class, println() is a method of the PrintStream class.
We shall learn the new topics and concepts in the later
sections.

Literally, just work on whatever feels good right now.


Learning to program is way more important than which
language you learn to do it in first. 99% chance you're
going to end up working in some other language anyway.

You can start learning programming with Java. It is a


fine language to use and it is similar enough (syntax
wise) to C, C++, C# that you could transition to those if
you need to.

You might also like