Uploaded by M. Manoja

Introduction to Java programming

advertisement
Unit–Introduction to Java
Advanced
1
Programming
Programming
1
Java
 Java is a popular programming language, created in 1995
 It is owned by Oracle
 Java is a Object-Oriented Programming Language
 Java is Case Sensitive
 Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
2
It is used for:
 Mobile applications (specially Android apps)
 Desktop applications
 Web applications
 Web servers and application servers
 Games
 Database connection
 And much, much more!
3
4
Java Variables and Data Types
Declaring (Creating) Variables
5
Console Application Development
Display Command- To Display Something on Screen
:
Input Command- To get an input from the user
The Scanner class is used to get user input, and it is found in
the java.util package.
6
Control Statements in Java
7
if/else
8
If/else if/else
9
Nested if
10
Switch Statement
11
While loop
12
Do-while
13
For Loop
14
15
Download