How Compiler Works?

How compiler works is not easy to explain in one sentence. The best way is to use an example. A compiler is a computer program that transforms source code written in a high-level programming language into a lower level language. Basically, a compiler consists the following phases: Lexical Analysis, Syntax Analysis, Semantic Analysis, IR Generation, … Read more

Overriding vs. Overloading in Java

Overriding and Overloading are two very important concepts in Java. They are confusing for Java novice programmers. This post illustrates their differences by using two simple examples. 1. Definitions Overloading occurs when two or more methods in one class have the same method name but different parameters. Overriding means having two methods with the same … Read more