annie0sc / JavaNotes

This is my notes on Java and Eclipse.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction to Java

Prerequisties

  1. Open JDK
  2. Eclipse IDE / IntelliJ

Set JAVA_HOME and PATH

  1. Using Command Prompt:
set JAVA_HOME=C:\\path_till_jdk_home
echo %JAVA_HOME%
set PATH=%JAVA_HOME%\bin
echo %PATH%
  1. 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.

Good Practices

  1. Class name should be uppercase letter using Pascal Case notation, Eg: Employee.
  2. Methos names should be lowerclass letters using CamelCase notation, Eg: getName().

About

This is my notes on Java and Eclipse.