> What is the use of javac in jre though we have this
> in jdk.?
javac is the java complier. the jdk includes javac so you can compile your java classes. the jre is the runtime environment in which the classes (which are already compiled) run, so no need for javac inside the jre.