0% found this document useful (0 votes)
5 views66 pages

Java Full Stack AVtraining-pages-1 (1)

Java is a widely used object-oriented programming language that is platform independent and runs on billions of devices. Developed by Sun Microsystems in 1991, it introduced features such as simplicity, tight coding, and architectural neutrality. Java is classified into three editions: Java SE for desktop applications, Java EE for web applications, and Java ME for mobile applications.

Uploaded by

gorakhnathbhoi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views66 pages

Java Full Stack AVtraining-pages-1 (1)

Java is a widely used object-oriented programming language that is platform independent and runs on billions of devices. Developed by Sun Microsystems in 1991, it introduced features such as simplicity, tight coding, and architectural neutrality. Java is classified into three editions: Java SE for desktop applications, Java EE for web applications, and Java ME for mobile applications.

Uploaded by

gorakhnathbhoi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 66

Java Full Stack

What is JAVA?

• Java is a widely used object-oriented programming


language and platform independent language used to
develop an application.

• It provides software platform that runs on billions of


devices, including notebook computers, mobile devices
and many others.
History of JAVA:

• In 1991, Sun Microsystem had a


requirement and they want to prepare
new programming Language.

• Before introducing the new


programming language they want to
introduce three features in the new
language.
What are these three features?

1. Simple programming language. (means more


performance) .
2. Tightly coded language. (means less cost
product)
3. Architectural Neutral programming language.
(means low maintenance product) .
When JAVA introduced?

• The development of Java language is started in


mid-1991.
• James Gosling, Mike Sheridan, and Patrick
Naughton were the key persons in the
development of JAVA.
• James Gosling, who is also known as the Founder
of Java.
JAVA Versions:

• JDK 1.0 was released on January 23, 1996.

• Managed by Sun Microsystem.


JAVA Versions:
Java Classification -
1. Java SE (Java Standard Edition)
• For desktop applications

2. Java EE (Java Enterprise Edition)


• For Web applications

3. Java ME (Java Micro Edition)


• For Mobile applications
Features of Java
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Installation of JDK:
Eclipse Installation
Eclipse Installation

• Step 2: Now you can see eclipse website open just


click on Download button
Eclipse Installation
Eclipse Installation

• Step 4: Now your downloading started


Eclipse Installation
Eclipse Installation
Eclipse Installation
Eclipse Installation
Eclipse Installation
Eclipse Installation

• Step 11: The Eclipse installer has done its work.


Step 11: The Eclipse installer has done its work.

• Step 11: The Eclipse installer has done its work.


Steps to create java Project
• Note:
If Project Explorer not visible just Go to Window >
Show view > Project Explorer .
Steps to Create a Class
Basic Terms

• Case sensitivity
• Java is a case sensitive which means identifier
"Hello" and "hello" would have different meaning in
java.
1. ClassName
• For all classname start with uppercase letter.
2. methodName
• All method starts with lower case letter
Basic Terms

3. ProjectName
• For all project name start with uppercase letter
4. PackageName
• all package name starts with lower case letter .
5. Comments (//)
• These lines are used for comments or writing some
statement that will be not considered during
execution of programs
Basic Terms

6. Signature Bracket ()
• Also called argument bracket
7. + Sign
• This + sign is used for concatenating or we can say
that join the string or statements
Methods in java

• Method in java is a collection of instructions that


perform specific task.

• Method is always declared inside class body.

• There are two types of methods –


1. Business method – main method
2. Regular method
Methods in java

• The syntax of the main() method is:


Methods in java

1.Regular method-
• a. Static method
• b. Non-Static method

a.Static Method-
• The method which contains static keyword and
used to perform particular task .
• To call static method there is no need to create
object.
Methods in java

b.Non-Static Method
• A method who does not contain static keyword is
known as non-static method.

• What is Object?
• It is Blueprint of class used to call non-static
method .
• How to Create Object in Java using new keyword
Syntax:
ClassName ObjectReferenceVariable = new
Constructor();
Variables in java

• Variable is a piece of memory used to store the


information.
There are three types of variable –
1. Local variable.
2. Static variable
3. Instance/Global variable
Data Types in Java

• Datatypes are used to represent types of data that


we going to used in the programming.

• Types of data types in Java:

1.Primitive datatype: boolean, char, byte, short, int,


long, float and double.
2.Non-primitive datatype: String
Constructor:

• At the time of constructor declaration below are


points need to followed:

1)Constructor name should be same as class


name.
2)We should not declare any return type for
Constructor .
Constructor:

• Way to call a constructor:


• new ConstructorName();

• There are 2 types of constructor –


1. Default Constructor
2. User defined Constructor
a. Non Argument Constructor
b. Parameterized/ Argument Constructor
Constructor:

1. Default Constructor-
Constructor:

2. User defined constructor


a. Zero argument constructor
Constructor:
Constructor:

• b. Parameterize constructor -

You might also like