More Related Content Similar to 1. Java Hello world (20) 1. Java Hello world2. Topics
Chapter 1: Java Fundamentals
Chapter 2: Operators
Chapter 3: Making Decisions
Chapter 4: Java Building Blocks
Chapter 5: Methods
Chapter 6: Class Design
Chapter 7: Advanced Class Design
Chapter 8: Core Java APIs
Chapter 9: Lambdas and Functional Interfaces
Chapter 10: Exceptions
Chapter 11: Modules
3. Topics
Chapter 12: Annotations
Chapter 13: Generics
Chapter 14: Functional Programming
Chapter 15: Exceptions, Assertions, and Localization
Chapter 16: Modular Applications
Chapter 17: Concurrency
Chapter 18: I/O
Chapter 19: NIO.2
Chapter 20: JDBC
Chapter 21: Security
4. What is Java
• General Purpose Object Oriented Language
• Platform independent
6. Print “Hello World” Massage.
1. Create a project.
2. Define main method.
3. Write print statement.
8. Read input from console.
Create Object of ‘Scanner’ Class
Scanner scanner = new Scanner(System.in);
Import Scanner from java.util package.
import java.util.Scanner;
Read input by scanner methods
scanner.nextInt();
scanner.nextLine();