Java - Types of java
- Core java
- Advanced java
- Android java
Primitive data Type 1.integer 2.char 3.double 4.float
Non-Primitive data Type 1.string 2.boolean
- Local
- Static
- Instance
- Final
Identifer class name , method name called identifer
- Public
- Private
- Protected
- Default
Scanner class (java.util.Scanner)
class - first letter always capital util - predefiend class store
Scanner obj-name = new Scanner(System.in);
new - this keyword used always creation obj
nextInt() - for integer value nexLine() - for String value nexDouble() - for nexDouble value
Conditional statement - if , if else, else if , nested if, switch Looping statement Transfer statement