Documentos de Académico
Documentos de Profesional
Documentos de Cultura
CHAPTER-1
INTRODUCTION TO TECHNOLOGY USED
Although the other programming languages which existed before the origin of Java were as good and
user friendly to the professional programmers, they still expected something advance to come up with all
those features which were definitely the cause of worry to them with respect to the security of their code
and this thought gave birth to a revolution which discovered another Programming Language-JAVA with
the features to ensure the security and the portability of their programs. Developing your applications
using the Java programming language results in software that is portable across multiple machine
architectures, operating systems, and graphical user interfaces, secure, and high performance.
Java was originally developed at Sun Microsystems in 1991 to provide a platform-independent
programming language and operating system for consumer electronics (TV sets, toasters and VCRs). In
syntax and execution, Java is a lot like a simplified version of C++.. It is a highly robust, distributed, high
performance, object-oriented, multi-threaded language with all of the usual features. As such, it builds
upon years of C++ development, taking the good and dispensing with the bad. As it so happened
however, Java did not make it into the consumer electronics market. Instead it wound up in our web
browsers. Java seemed to be a perfect fit for the web. The language itself was extremely small. Thus it
could quickly be transferred over the web.
Further, Java was platform independent. That is, any computer with a Java virtual machine can run a Java
program. Programs can be written anywhere and be run anywhere. This is crucial because if a language
can not run on any machine, it cannot be used on the web that must service every machine, language, and
environment imaginable. Platform independence works because Java is an interpreted rather than a
compiled language. Unlike C or C++ code, when Java is compiled, it is not compiled into platform
specific machine code, but into platform independent byte code. This byte code is distributed over the
web and interpreted by a virtual machine on whichever platform it is being run. Perhaps a picture would
be useful...
Thus, as a programmer, you need only concern yourself with the generic Java programming language and
compile your applications into byte code on whatever system you are using. You can then be assured that
your byte code will be executed correctly whether your clients are using Macs, Pcs, Unix boxes or
anything else. Perhaps the best summary of the design goals and accomplishments of Java comes from
Gary Cornell in the introduction to Core Java. In this introduction, Cornell outlines 12 design principles
used in the development of the Java language. To do so, he quotes from the Java White Paper from Java
1
soft. I will duplicate the quotes here, but you should not consider your Java Library complete without a
copy of Core Java. Java is Simple."We wanted to build a system that could be programmed easily without
a lot of esoteric training and which leveraged today's standard practices...
So even though we found that C++ was unsuitable, we designed Java as closely to C++ as possible in
order to make the system more comprehensible. Java omits many rarely used, poorly understood,
confusing features of C++ that, in our experience, bring more grief than benefit."
Not only the security, but there were few more areas which were taken care by this Programming
Language normally identified as the JAVA-BUZZWORDS. These words define the additional features
and considerations which gave JAVA- complete success and acceptance from the programmers of the
software World. Together, the above requirements comprise quite a collection of buzzwords .
1.1.3.Robust
Java is considered to be a very robust Programming language ass it ensures that the Java Programs run
easily and successfully on the variety of environments and platforms. Since Java is a strictly typed
language it helps the programmer to reduce the chances of making the run time errors and also handling
them within the programs itself which normally cannot happen in other programming languages.
1.1.5.Interpreted
Java programs get converted into Byte code which is easily interpreted by the JVM on any machine and
in any environment and although it gets interpreted by the JVM it is not the case that the Java Code cant
be complied into the native machine code and it is taken care by the JIT (Just In-Time) Complier which
is available with the JVM and thus ensures very high Performance of the language.
1.1.7.High-Performance
For all but the simplest or most infrequently used applications, performance is always a consideration. It
is no surprise, then, to discover that achieving high performance was one of the initial design goals of the
Java developers. A Java application will not achieve the performance of a fully compiled language such
as C or C++. However, for most applications, including graphics-intensive ones such as are commonly
found on the World Wide Web, the performance of Java is more than adequate. For some applications,
there may be no discernible difference in performance between C++ and Java.
Many of the early adopters of C++ were concerned about the possibility of performance degradation as
they converted their programs from C to C++. However, many C++ early adopters discovered that,
although a C program will outperform a C++ program in many cases, the additional development time
and effort don't justify the minimal performance gains.
Of course, because we're not all programming in assembly language, there must be some amount of
performance we're willing to trade for faster development. It is very likely that early experiences with
Java will follow these same lines. Although a Java application may not be able to keep up with a C++
application, it will normally be fast enough, and Java may enable you to do things you couldn't do with
C++.
1.4.1.Compiler
There is, of course, a Java compiler, named javac. The Java compiler takes input source code files (these
files typically have the extension .java) and converts them into compiled byte code files. javac: The Java
Compiler."
1.4.2.Interpreter
The Java interpreter, known eponymously as java, can be used to execute Java applications. The
interpreter translates byte codes directly into program actions.
1.4.3.Debugger
The Java debugger, jdb, enables you to debug your Java classes. Unfortunately, the Java debugger is a
throwback to the pre-GUI debugger dark ages of programming. The Java debugger is a command-line
debugger that is enough to make you wish for even the 1988 version of CodeView. However, we can use
the jdb to set breakpoints, inspect objects and variables, and monitor threads.
1.4.5.Disassembler
One of the basic tenets of object-oriented programming is that programmers unfamiliar with a class need
only concern themselves with the public interface of that class. If you want to use a Queue or Stack class,
you shouldn't be concerned with (or need to be concerned with) how this class has been written. Whether
it uses a linked list, a statically sized array, or a dynamic array shouldn't influence whether and how you
use the class.
Because you should be interested only in the public interface of a class, the Java
Developer's Kit includes a disassembler, javap, that can be used to display the public interface, both
methods and variables, of a class.
Additionally, the Java disassembler includes options to display private members or to display the actual
byte codes for the class's methods. This last option can be particularly useful if you want to achieve a
greater understanding of the byte codes used by the Java interpreter.
7
1.4.7.JavaDoc
As programmers, we've fought it in every way possible. Unfortunately, there is no longer any excuse for
not documenting our source code. Using the JavaDoc utility provided with the Java Developers Kit, you
can easily generate documentation in the form of HTML files. To do this, you embed special comments
and tags in your source code and then process your code through JavaDoc. All of the on-line Java API
documentation was created with JavaDoc.
1.4.8.Applet Viewer
If you will be writing Java applets, you will definitely want to become familiar with the Applet Viewer.
This small program provides a real Java environment for testing applets. It loads the HTML file in which
the applet has been embedded and displays the application in a browser-like window.
CHAPTER-2
Introduction to JDBC
2.1 What is JDBC?
JDBC stands for "Java DataBase Connectivity". It is an API (Application Programming Interface) which
consists of a set of Java classes, interfaces and exceptions and a specification to which both JDBC driver
vendors and JDBC developers adhere when developing applications.
source using JDBC to browse the database meta-data and instance, and to manipulate the database by
issuing ad hoc SQL statements. The application can be run using a browser .
ODBC
DataSources". Using Help, search on ODBC and then select the topic "Using
Data Sources". From there, select "Data Sources" to bring up the ODBC .
10
5. Browse to find the actual file of your database and click OK when you're done.
6. Click OK to exit all the windows.
2.3.JDBC Architecture
We'll divide it into 2 parts:
*JDBC API (java.sql & javax.sql packages)
*JDBC Driver Types
2.3.1.JDBC API
The JDBC API is available in the java.sql and javax.sql packages. Following are important JDBC
classes, interfaces and exceptions in the java.sql package:DriverManager - Loads JDBC drivers in
memory. Can also be used to open connections to a data source. Connection - Represents a connection
with a data source. Is also used for creating Statement, PreparedStatement and CallableStatement objects.
Statement - Represents a static SQL statement. Can be used to retrieve ResultSet object/s.
PreparedStatement - Higher performance alternative to Statement object, represents a precompiled SQL
statement.
ResultSet - Represents a database result set generated by using a SELECT SQL statement.
SQLException - An exception class which encapsulates database base access errors. javax.sql is part
of J2SE 1.4 and J2EE 1.3. It adds following features to JDBC in addition to the ones provided by java.sql
package.
DataSource - Abstracts a data source. This object can be used in place of DriverManager to efficiently
obtain data source connections (possibly using hidden connection pooling). Provides built-in connection
pooling.
JDBC Type 1 Driver - They are JDBC-ODBC Bridge drivers. They delegate the work of data access
to ODBC API. They are the slowest of all. SUN provides a JDBC/ODBC driver implementation.
JDBC Type 2 Driver - They mainly use native API for data access and provide Java wrapper classes
to be able to be invoked using JDBC drivers.
While Type1 JDBC drivers offer convenience of access to ODBC data Sources, they are limited in their
functionality and performance.Type2 drivers are OS-specific and compiled and although they offer more
Java functionality and higher performance than Type1 drivers,still require a controlled environment
13
CHAPTER 3.
INTRODUCTION TO PROJECT
3.1 ABSTRACT:
The main functional requirement is to explain the various functions and also working of software. It takes
into consideration all the possible future requirement and functional and non functional requirement.The
entire users information is saved into database. Admin have full control over all project information.
Conclusion:
The main purpose of this project is to describe the various flavours available in vadilal ice cream
parlour.
One another main purpose of this project is to keep the record of sales ,customer information
computerized by use of databases, because to keep the record of customer information manually
is very difficult.
electronic record keeping system - making it easier to capture information, generate reports and
meet tax and legal reporting requirements.
The environment used for this project is JAVA. This project is based on core JAVA. The software used
for this java jdk1.2.0, Window7 operating system.
3.2 OBJECTIVES:
This concept of vadilal ice cream parlour includes following points:
It is easy to save records of customer information and provide easy access and hence saves time.
It also provides multiuser environment.
A feasibility study is short, focused study which aims at selecting the best system that meets
performance requirements. Information is gathered regarding the general requirements of the
proposed system.
If feasibility study is to serve as the decision document, it answers a number of questions.
Like
Is it beneficial?
Does it save time and money?
Can it be integrated with other systems already in place?
Planning resources is a very vast concept and we are beginners, thus including each and every
aspects of web, Integrate and automate them in every respect was not feasible for us. Hence we
perform feasibility study to make our project compatible for present environment. The concept of
vadilal ice cream parlour isnt newer but an efficient one. The project is built with the help of
JAVA technology which is reliable and efficient platform to work upon. This concept saves time
and also lesses the users frustration.
It saves time and is thus a faster means of find the customer information and sales.
It is less costly.
15
: Window 7
Front End
: JAVA jdk1.6.0
Back End
: M.S.Access
IDE Used
: Notepad
Hardware Requirements:
Machine
: Intel i3or i5
Speed
Hard Disk
: 320GB(minimum)
RAM
: 2GB
16
The main purpose of this project is to describe the various flavours available in vadilal ice cream
parlour.
One another main purpose of this project is to keep the record of sales ,customer information
computerized by use of databases, because to keep the record of customer information manually
is very difficult.
electronic record keeping system - making it easier to capture information, generate reports and
meet tax and legal reporting requirements.
17
The environment used for this project is JAVA. This project is based on core JAVA. The software used
for this java jdk1.2.0, Window7 operating system.
18
WEBSITES:www.google.co.in
en.wikipedia.org
19
CHAPTER-4
SNAPSHOTS OF PROJECT
LOGIN FORM
MENU FORM
21
KULFI
STICK KULFI
24
DATABASE REPORT
25
26
27
28
29
CONCLUSION
Computerization is needed in this Shrinking world, where centralization is also required with
globalization.
The main purpose of this project is to describe the various flavours available in vadilal ice cream
parlour.
One another main purpose of this project is to keep the record of sales ,customer information
computerized by use of databases, because to keep the record of customer information manually
is very difficult.
electronic record keeping system - making it easier to capture information, generate reports and
meet tax and legal reporting requirements.
The environment used for this project is JAVA. This project is based on core JAVA. The software used
for this java jdk1.2.0, Window7 operating system.
30
31