Using the Command Line Tools or an Integrated Development Environment
JDK provides command-line tools .Through which we can compile and run our program on command prompts.
JDK provides various command line tool like java, javac, javadoc, javah, etc
You can see more command-line tool into bin folder of java install directory (e.g C:\Program Files\Java
Today there are various IDE through which we can develop an application easy way.
These IDE provides editor which will checked all syntax at development time(before executions).These IDE
checks spelling, compile time error .
These IDE provides auto-format ,special notations for keywords.Here you can run, debug your applications.