suppose there is a file test.java .
Aim is to compile this file and if compile is successful(no errors ) then run this file i.e java test.
problem is i need to do all this i.e compilation and run of 'test' from a java program only.
this java program must able to compile any file and then run that file.