Professional Documents
Culture Documents
Introduction To Technology Used
Introduction To Technology Used
FRONT END
JAVA:
Java programming language was originally developed by Sun Microsystems, which was
initiated by James Gosling and released in 1995 as core component of Sun Microsystems’s
Java platform (Java 1.0 [J2SE]). As of December 08 the latest release of the Java Standard
Edition is 6 (J2SE). With the advancement of Java and its wide spread popularity, multiple
configurations were built to suite various types of platforms. Ex: J2EE for Enterprise
Applications, J2ME for Mobile Applications. Sun Microsystems has renamed the new J2
Object Oriented: In java everything is an Object. Java can be easily extended since it is
based on the Object model. Although inuenced by its predecessors, Java was not
designed to be source-code compatible with any other language. This allowed the Java team
the freedom to design with a blank slate. One outcome of this was aclean, usable, pragmatic
environments of the last few decades, Java manages tostrike a balance between the purist’s
way” model. The object model in Java is simple andeasy to extend, while primitive types,
Platform independent: Unlike many other programming languages including C and C++
when Java is compiled, it is not compiled into platform specific machine, rather into platform
independent byte code. This byte code is distributed over the web and interpreted by virtual
Simple: Java is designed to be easy to learn. If you understand the basic concept of OOP
java would be easy to master. Java was designed to be easy for the professional
programmer to learn and use eectively. Assuming that you have some programming
experience, you will not and Java hard to master. If you already understand the
basic concepts of object-oriented programming, learning Java will be even easier. Best of all,
if you are an experienced C++ programmer, moving to Java will require very little eort.
Because Java inherits theC/C++ syntax and many of the object-oriented features
Secure: With Java's secure feature it enables to develop virus-free, tamper-free systems.
which makes the compiled code to be executable on many processors, with the presence Java
runtime system.
Portable: Being architectural neutral and having no implementation dependent aspects of the
specification makes Java portable. Compiler and Java is written in ANSI C with a clean
portability boundary which is a POSIX subset. Portability is a major aspect of the Internet
because there are many dierent types of computers and operating systems connected to it. If
a Java program were to be run on virtually any computer connected to the Internet, there
needed to be some way to enable that program to execute on dierent systems. For
example, in the case of an applet, the same applet must be able to be downloaded and
executed by the wide variety of CPUs, operating systems, and browsers connected to the
the applet for dierent computers. The same code must work on all computers. Therefore,
will soon see, the same mechanism that helps ensure security also helps create portability.
Robust: Java makes an effort to eliminate error prone situations by emphasizing mainly on
compile time error checking and runtime checking. The multiplatformeenvironment of the
Web places extraordinary demands on a program, because the program must execute reliably
in a variety of systems. Thus, the ability to create robust programs was given a high priority
in the design of Java. To gain reliability, Java restricts you in a few key areas to force you to
same time, Java frees you from having to worry about many of the most common causes of
programming errors. Because Java is a strictly typed language, it checks your code at compile
time. However, it also checks yourcode at run time. Many hard-to-track-down bugs that often
Knowing that what you have written will behave in a predictable way
(In fact, deallocation is completely automatic, because Java provides garbage collection for
such as division by zero or “le not found,” and they must be managed with clumsy and
your program.
Multi-threaded: With Java's multi-threaded feature it is possible to write programs that can
do many tasks simultaneously. This design feature allows developers construct smoothly
running interactive applications. Java was designed to meet the real-world requirement of
programming, which allows you to write programs that do many things simultaneously. The
Java run-time system comes with an elegant yet sophisticated solution for multiprocess
synchronization that enables you to construct smoothly running interactive systems. Java’s
easy-to-use approach to multithreading allows you to think about the specic behavior of
subsystem.
Interpreted: Java byte code is translated on the fly to native machine instructions and is not
stored anywhere. The development process is more rapid and analytical since the linking is
an incremental and light weight process. As described earlier, Java enables the creation of
bytecode. This code can be executed on any system that implements the Java Virtual
Machine. Most previous attempts at cross-platform solutions have done so at the expense of
performance. As explained earlier, the Java bytecode was carefully designed so that it would
be easy to translate directlyinto native machine code for very high performance by using a
just-in-time compiler. Java run-time systems that provide this feature lose none of the
High Performance: With the use of Just-In-Time compilers Java enables high performance.
Distributed: Java is designed for the distributed environment of the internet. Java is
designed for the distributed environment of the Internet because it handles TCP/IP protocols.
In fact, accessing a resource using a URL is not much dierent from accessing a le. Java
also supports Remote Method Invocation (RMI). This feature enables a program toinvoke
Dynamic: Java is considered to be more dynamic than C or C++ since it is designed to adapt
information that can be used to verify and resolve accesses to objects on run-time. Java
programs carry with them substantial amounts of run-time type information that is used to
verify and resolve accesses to objects at run time. This makes it possible to dynamically link
code in a safe and expedient manner. This is crucial to the robustness of the Java
running system.
History of Java
James Gosling initiated the Java language project in June 1991 for use in one of his many set-
top box projects. The language, initially called Oak after an oak tree that stood outside
Gosling's office, also went by the name Green and ended up later renamed as Java, from a list
of random words. Sun released the first public implementation as Java 1.0 in 1995. It
promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular
platforms. On 13 November 2006, Sun released much of Java as free and open source
software under the terms of the GNU General Public License (GPL). On 8 May 2007 Sun
finished the process, making all of Java's core code free and open-source, aside from a small
portion of code to which Sun did not hold the copyright. Java was conceived by James
Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems,
Inc. in 1991. It took 18 months to develop the rst working version. This language was
initially called “Oak,” but was renamed “Java” in 1995. Between the initial implementation
the public announcement of Java in the spring of 1995, many more people contributed to the
design and evolution of the language. Bill Joy, Arthur van Ho, Jonathan Payne, Frank
Yellin, and Tim Lindholm were key contributors to the maturing of the original
prototype.
IDE available in the market. But for now, you can consider one of the following:
Notepad: On Windows machine you can use any simple text editor like Notepad
Net beans: is a Java IDE that is open source and free which can be downloaded
fromhttp://www.netbeans.org/index.html.
Eclipse: is also a java IDE developed by the eclipse open source community and can
Let us look at a simple code that would print the words Hello World.
}}
Lets look at how to save the file, compile and run the program. Please follow the steps given
below:
Open a command prompt window and go o the directory where you saved the class.
Type ' javac MyFirstJavaProgram.java ' and press enter to compile your code. If there
are no errors in your code the command prompt will take you to the next line.
You will be able to see ' Hello World ' printed on the window.
C :>javac MyFirstJavaProgram.java
Hello World
Basic Syntax: About Java programs, it is very important to keep in mind the
following points. Case Sensitivity - Java is case sensitive which means identifier
several words are used to form a name of the class each inner words first letter
Method Names - All method names should start with a Lower Case letter. If
several words are used to form the name of the method, then each inner word's
Program File Name - Name of the program file should exactly match the class
name. When saving the file you should save it using the class name (Remember
java is case sensitive) and append '.java' to the end of the name. (if the file name
and the class name do not match your program will not compile). Example :
Assume 'MyFirstJavaProgram' is the class name. Then the file should be saved
JSP (Java Server Pages) is a standard for developing interactive Web applications (pages
containing dynamic content). A JSP web page (recognizable by the .jsp extension) may
display different content based on certain parameters (information stored in a database, the
user preferences, ..), while a classic webpage (with the .htm or .html extension) will
(interpreted language) executed on the server side (like CGI, PHP, ASP, ...) and not on the
client side (unlike scripts written in JavaScript or Java applets which run in the browser of the
user connected to a site).JSPs are integrated in a web page in HTML using special tags which
will notify the Web server that the code included within these tags are to be interpreted. The
result (HTML codes) will be returned to the client browser .Java Server Pages are part of a 3-
tier architecture: where a server supporting the Java Server Pages (generally referred to as
application server) will act as a mediatior between the client browser and a database
(generally referred to as data server). JSP provides the necessary elements for the connection
to the database management system and allow the manipulation of data through SQL.
A JavaServer Pages component is a type of Java servlet that is designed to fulfill the role of
a user interface for a Java web application. Web developers write JSPs as text files that
combine HTML or XHTML code, XML elements, and embedded JSP actions and
commands.
Using JSP, you can collect input from users through web page forms, present records from a
JSP tags can be used for a variety of purposes, such as retrieving information from a
Common Gateway Interface (CGI). But JSP offer several advantages in comparison with the
CGI.
JSP are always compiled before it's processed by the server unlike CGI/Perl which
requires the server to load an interpreter and the target script each time the page is
requested.
Java Server Pages are built on top of the Java Servlets API, so like Servlets, JSP also
has access to all the powerful Enterprise Java APIs, including JDBC, JNDI, EJB,
JAXP etc.
JSP pages can be used in combination with servlets that handle the business logic, the
Finally, JSP is an integral part of Java EE, a complete platform for enterprise class
applications. This means that JSP can play a part in the simplest applications to the
jQuery is to make it much easier to use JavaScript on your website.jQuery takes a lot of
common tasks that require many lines of JavaScript code to accomplish, jQuery simplifies
HTML document traversing, event handling, animating, and Ajax interactions for rapid web
development and wraps them into methods that you can call with a single line of code.jQuery
also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM
CSS manipulation
AJAX
Utilities