Features of Java
- Object Oriented
- Simple
- Secured
- Platform independent
- Robust
- Portal
- Architecture Neutral
- Dynamic
- Interpreted
- High Performance
- Multi threaded
- Distributed
Convention of Java
- Class Name should be start with upper latter example Test
- Variable should in lower case
- Method should be begins with Camel case lower case the upper case
- Package name should be lower letter
- Constant should be like :- SIZE 50
Compilation
- Download J.D.K and Install J.D.K in 💻
- Set Path
- Write program in NotePad
- Save program with .java extension
- Compile program in command prompt Example javac ClassName.java
- Execute program in command prompt Example java ClassName
Ways to create object in JAVA
- New Keyword
- Instance factory method
- static factory method
- pattern factory method
- new instance method
- clone() method.
Its really beneficial blog ...n i liked it
ReplyDelete