What is the use of –d and –cp option?


Ans: -d option : to separate the .java file and .classes file .
        -cp option:  used to specify where to find .classes files. (for java command)