Power Point Presentation On Topic: JAVA: Submitted By: Himani Kathal
Power Point Presentation On Topic: JAVA: Submitted By: Himani Kathal
on
Topic: JAVA
Submitted by :
Himani Kathal
What is java?
Java is a programming language and a platform.
Java is a high level, robust, object-oriented and secure
programming language.
Java was developed by Sun Microsystems (which is now
the subsidiary of Oracle) in the year 1995.
Java is platform-independent that means java code can
be compiled on any operating system and made to run
on the same or any other operating system.
Java supports concurrency which means the code can
be executed by multiple processes at the same time.
Java is class-based and object-oriented.
Why do we use java?
Simplicity: Java was developed keeping in mind the
complexities in other programming languages like C or
C++.
Portability: As already covered java source code can be
developed and compiled on one machine and can be
made to run on the same or any other operating system.
Object-Oriented: In java, everything is treated as an
object and all the operations involved in application
development are completed using these objects.
Dynamic Capability: Applications developed using java
can adapt them to changing execution environment.
High Security: In terms of security java is operated on
byte code which is not readable in nature. It runs source
code inside a secured sandbox and does not allow any
external intervention.
Robust: Java is developed keeping in mind all
possibilities, and therefore there is no existence of the
error.
Multithreading: Java supports creating multiple threads
for execution thus providing high performance.
Interpreted: The code is converted into byte code which
in turn is interpreted by java run time environment.
Performance: Java provides high performance as it
makes use of byte code which can be translated into
machine code with ease and with high speed.
What can we do with Java?
Banking and Financial Domain : Banking domain makes use
of java for handling transactions. It performs exceptionally
well while handling millions of transactions in an efficient
way.
“Hello Java”
To compile :
javac Simple.java
To execute :
java Simple
To save file :
.java extension is used.
What are the parameters used in
Java program?
class keyword is used to declare a class in java.
public keyword is an access modifier which 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 to create 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 is used for command line argument. We
will learn it later.
System.out.println() is used to print statement. Here,
System is a class, out is the object of PrintStream class,
println() is the method of PrintStream class.