How to start with Java
If you ask me how to start with java, I would say there are many ways- Some start by writing a simple java application, or go with creating applets, some go about learning servlets. Others need to learn about a particular technology area right away. No matter what your approach, to learn and develop applications written in the Java programming language, you must first set up the Java platform.Before you develop the application, you need to have the Java Platform Standard Edition (Java SE) development kit. It has the necessary Java Virtual Machine (JVM), core Application Programming Interfaces (API)s, and the compiler you’ll need for most and perhaps all of your development. Macintosh users should go to Apple’s Mac OS X Java Runtime Environment . Then return for Java programming information and tutorials.
Usually any java or j2ee application developmnet will have a set of application kits.
The development kits include the APIs necessary to whatever type of applications you develop in the Java programming language. The APIs and compiler are explained briefly below.
Once you have the development kits you need, you are ready to begin writing code in the Java programming language. Programs are written in three basic flavors: applets, applications, and servlets/JSP pages. Applets run in the JVM built into a web browser; applications run in the JVM installed on a computer system; and servlets/JSP run in the JVM installed on a web server.
Applets and applications are usually used to have some kind of user interface coupled to backend functionality,
Servlets mainly provide the backend functionality only. The html usually playsthe fornt end for a servlet. It wil be JSP’s in a J2EE envirronment.
Any applet or application that opens a hypertext transfer protocol (HTTP) request can call a servlet.
JSP, on the other hand, combines the servlet and HTML into a single component. Instead of using an HTML page with a separate servlet, you use an HTML page with regular HTML tags in combination with scriptlets, short bits of code. The entire page is then processed into a servlet when it’s accessed or submitted and the results return to the same HTML page that contains the code.