Anda di halaman 1dari 29

Project Presentation

on
Cinema Ticket Printing
Software
Submitted by:
Dharamjeet Singh
(1307552)
Himmat Kumar
(1307558)

Ghuman

Company Profile

THE KITES is a reputed institution for 6 weeks/months


training in Jalandhar. Mr. Chetan Sharma is an excellent
teacher. He has been teaching Java since 7-8 years. He has
expert knowledge about the subject. Our experience at the
institution was great.

THE KITES is Govt. approved and ISO Certified Company


operating through well defined systems and procedures.
THE KITES is not only providing Industry Based Solutions to
the IT Industry but also providing Software Development
Services. The students are getting hands on experience on
Live Projects under the guidance of experienced faculty.

Objectives:-to provide Best Training to the budding


professionals and to provide top quality services in
Software, Web, Mobile-Apps & Enterprise-Apps
Development. All needs of students will be taken care under
one roof ranging from customized Training to developing the
personality & providing hands on practice on Live Projects.
We are into this era of Development and Training with a
vision to groom students as per Industrial Requirements &

What Is Cinema Ticket Printing


Software
Cinema ticket printing software is a
desktop application developed for
printing the tickets of movies, storing
the information of all employees
,adding the details of new employee.
In todays world cinema business is
growing rapidly.Everyone wants to
watch movies at the time of release so
to have a software to use in cinema to
print ticket is essential, which should be
easy to use .

Technology used : JAVA


Java

is high level programming language developed by Sun


Microsystems.
Java is robust, secured and object oriented programming language.
Java generally refers to combination of three things :
Java programming language
Java virtual machine (JVM)
Platform
Java is intended to let the application developers write once run
anywhere (WORA) meaning that compiled java code can run on all
platforms that supports java without the need for recompilation.
Java source code files are compiled into a format called bytecode which is
then be executed by java interpreter.
Compiled java code can run on most computers because java interpreters
and runtime environments known as java virtual machine exist for most
operating system including UNIX, Macintosh OS and Windows.
Java is general purpose programming language with number of features
that make the language well suited for the use on World Wide Web.
JAVA files are stored in files suffixed with .java. These files are then
complied into java bytecode using the java compiler and the byte code is
then executed using java virtual machine.

Features of Java
Simple:According to Sun java is simple language because:syntax is based on C++ (so easier for programmers to learn it
after C++).
removed many confusing and/or rarely-used features e.g.,
explicit pointers, operator overloading etc.
No need to remove unreferenced objects because there is
Automatic Garbage Collection in java.
Object Oriented :Object-oriented means we organize our software as a
combination of different types of objects that incorporates
both data and behaviour.
Object-oriented programming(OOPs) is a methodology that
simplify software development and maintenance by providing
some rules.

Basic concepts of OOPs are:


Object
Class
Inheritance
Polymorphism
Abstraction
Encapsulation

Platform Independent :A platform is the hardware or software environment in


which a program runs. There are two types of platforms
software-based and hardware-based. Java provides
software-based platform. The Java platform differs from
most other platforms in the sense that it's a softwarebased platform that runs on top of other hardware-based
platforms. It has two components:
Runtime Environment
API(Application Programming Interface)
Java code can be run on multiple platforms e.g.
Windows, Linux, Sun Solaris, Mac/OS etc. Java code is
compiled by the compiler and converted into bytecode.
This bytecode is a platform independent code because it
can be run on multiple platforms i.e. Write Once and Run
Anywhere(WORA).
Secured :Java is secured because:
No explicit pointer
Programs run inside virtual machine sandbox.

Robust :Robust simply means strong. Java uses strong memory


management. There are lack of pointers that avoids security
problem. There is automatic garbage collection in java. There
is exception handling and type checking mechanism in java.
All these points makes java robust.

Architecture- neutral :There

is no implementation dependent features e.g. size of


primitive types is set.
Portable :
We may carry the java bytecode to any platform.

High Performance :
Java is faster than traditional interpretation since byte code is
"close" to native code still somewhat slower than a compiled
language (e.g., C++).

Distributed :-
We can create distributed applications in java.
RMI and EJB are used for creating distributed
applications. We may access files by calling the
methods from any machine on the internet.

Multi- threaded :
A thread is like a separate program, executing
concurrently. We can write Java programs that
deal with many tasks at once by defining multiple
threads. The main advantage of multi-threading
is that it shares the same memory. Threads are
important for multi-media, Web applications etc.

How The Java Program Works:-

In

the Java programming language, all source code is first


written in plain text files ending with the.javaextension. Those
source files are then compiled into.classfiles by
thejavaccompiler. A.classfile does not contain code that is
native to your processor; it instead contains bytecode the
machine language of the Java Virtual Machine(Java VM).
Thejavalauncher tool then runs your application with an
instance of the Java Virtual Machine.
Because the Java VM is available on many different operating
systems, the same.classfiles are capable of running on
Microsoft Windows, the Solaris Operating System (Solaris OS),
Linux, or Mac OS. Some virtual machines, such as theJava SE
HotSpot at a Glance, perform additional steps at runtime to
give your application a performance boost. This includes
various tasks such as finding performance bottlenecks and
recompiling (to native code) frequently used sections of code.

At

compile time :At compile time, java file is compiled by


Java Compiler (It does not interact with OS)
and converts the java code into bytecode.

At

run time :-

Classloader:is

the subsystem of JVM that


is used to load class files.
Bytecode Verifier:checks the code
fragments for illegal code that can violate
access right to objects.
Interpreter:read bytecode stream then
execute the instructions.

Java Platform :
Aplatformis

the hardware or software environment in


which a program runs. We've already mentioned some of
the most popular platforms like Microsoft Windows, Linux,
Solaris OS, and Mac OS. Most platforms can be described as
a combination of the operating system and underlying
hardware. The Java platform differs from most other
platforms in that it's a software-only platform that runs on
top of other hardware-based platforms.
The Java platform has two components:
The Java virtual Machine
The Java Application Interface (API)
The API is a large collection of ready-made software
components that provide many useful capabilities. It is
grouped into libraries of related classes and interfaces;
these libraries are known as packages.

Features Of JVM :By

primitive data type : " java virtual machine (JVM) defines the
primitive data type to maintain its compatibility and guarantee
platform independence".
Based on stack machine :most popular computer architectures
such as Intel( x86) Architecture and ARM Architecture run based
on a register. However, JVM runs based on a stack.
Order network byte: Java class file uses network byte order to
maintain platform independence between the little endian used by
Intel( x86 Architecture) and the big endian used by the RISC Series
Architecture " a fixed byte order must be kept. Therefore, JVM uses
the network byte order". (which is used for network transfer).
Symbolic : All types (class and interface) except for primitive data
types are referred to through symbolic reference- instead of
through explicit (memory) address based reference.
Garbage collection(gc): A class instance is explicitly created by the
"user code" and automatically destroyed by "garbage collection".

Java Runtime Environment(JRE):JRE is an acronym for Java Runtime


Environment. It is used to provide runtime
environment. It is the implementation of
JVM. It physically exists. It contains set of
libraries + other files that JVM uses at
runtime.
Implementation of JVMs is also actively
released by other companies besides Sun
Micro Systems.
Java Development Kit(JDK):
JDK is an acronym for Java Development
Kit. It physically exists. It contains JRE +
development tools.

Java JDBC :Java

JDBC is a java API to connect and


execute query with the database. JDBC API
uses jdbc drivers to connect with the
database.
Before JDBC, ODBC API was the database
API to connect and execute query with the
database. But, ODBC API uses ODBC driver
which is written in C language (i.e. platform
dependent and unsecured). That is why Java
has defined its own API (JDBC API) that uses
JDBC drivers (written in Java language).

JDBC Drivers :JDBC

Driver is a software component


that enables java application to
interact with the database. There are
4 types of JDBC drivers:
JDBC-ODBC bridge driver
Native-API driver (partially java driver)
Network Protocol driver (fully java
driver)
Thin driver (fully java driver)

Back End : Oracle 10g


An

Oracledatabaseis a collection of data


treated as a unit. The purpose of a database
is to store and retrieve related information. A
database server is the key to solving the
problems of information management. In
general, a server reliably manages a large
amount of data in a multiuser environment so
that many users can concurrently access the
same data. All this is accomplished while
delivering high performance. A database
server also prevents unauthorized access and
provides efficient solutions for failure
recovery.

Features
It

supports several development interfaces.


It runs on many operating systems
It manages memory very well
It is fast
It is Inexpensive
It is secure
It is easy to use
Full support for several different character sets
Clients can connect to theORACLEserver using TCP/IP sockets on
any platform.
InORACLEversions 8 and higher, Windows servers also support
shared-memory connections if started with the --shared-memory
option.
Handles large databases. We useORACLEServer with databases
that contain 50 million records
Written in C and C++.
Fully multi-threaded using kernel threads. It can easily use multiple
CPUs if they are available.
Provides transactional and non-transactional storage engines.
SQL functions are implemented using a highly optimized class library
and should be as fast as possible.

Create Account: Personal


details

Create account 2

Create account 3

Account created

Log In

Choose Movie

Select seats

Details in Ticket

Printing Details

Print Ticket

Thank You