Compiler Seraching Algorithm for AC
Compiler Seraching Algorithm for AC
================================================
1. In a Java program we can access one class from other classes
2. if not found in method, Compiler searches class Add in current class Calc
as class level innner class, if available compiler uses it
class Calc {
main method {
Add.add(10,20);
Auto compilation
=================
1. When we access one class (Add) from another class (Calc),
we no need to compile the first class java file Add.java,
we can compile the second class java file (Calc.java) directly
4. If we create the java file and the class name with different names,
we will not auto compilation, we must compile each class separately.