- Open JDK
- Eclipse IDE / IntelliJ
- Using Command Prompt:
set JAVA_HOME=C:\\path_till_jdk_home
echo %JAVA_HOME%
set PATH=%JAVA_HOME%\bin
echo %PATH%
- Using environment variables:
Open 'env' in windows search -> Edit Environment Variables -> 'advanced' tab -> click 'Environment Variables' -> add new path and save as JAVA_HOME -> Ok
Repeat the same for PATH.
- Class name should be uppercase letter using Pascal Case notation, Eg: Employee.
- Methos names should be lowerclass letters using CamelCase notation, Eg: getName().