Sei sulla pagina 1di 30

A

SEMINAR REPORT
ON

“Core Java”
Submitted in
Partial Fulfillment for the Award of the
Degree of
Bachelor of Technology
In
COMPUTER SCIENCE ENGINEERING

Session: 2019-20

Supervised by Submitted by
Mr. Anoop Kumar Mehta Siddharth Kavadia
Assistant Professor III Semester

DEPARTMENT OF COMPUTER SCIENCE&ENGINEERING


Jaipur Engineering College and Research Centre, Jaipur
Training Certificate
CERTIFICATE

This is to certify that the seminar work entitled “Core Java” has been
submitted by “Siddharth Kavadia” under my guidance in partial
fulfillment for the award of degree of Bachelor of Technology in
Computer Science Engineering during the academic year 2019-20.
The seminar report has been approved as it satisfies the academic
requirements with respect to seminar work presented for the Bachelor
of Technology Degree.

Supervisor:

Date:
TABLE OF CONTENTS

S. No. TOPIC Page No.


1. Introduction Of Java 7
2. Topics Covered in Java 9
3. Mysql Database 13

4. Project Discription 15
5. Database Tables 26
6. Conclusion 28
7. Refrences 29
LIST OF FIGURES

Fig. No. Title Page No.


1. Login 16
2. Admin Menu 16
3. Books Available 17
4. View Users 18
5. Create/Reset 18
6. Add User Details 19
7. Confirmation Addition User 19
8. Issue Book Details 20
9. Confirmation Issued 20
10. View Issued Books 21
11. Login by User 21
12. User Functions 22
13. Issued Books 22
14. Return Book 23
15. Fine Charged 23
16. Confirmation Returned 24
17. Add Book 24
18. Confirmation Book Added 25
LIST OF TABLES

Table. Title Page No.


No.
1. Books Available 27
2. User List 27
3. My Book 27
CHAPTER-1

Introduction to Java

What is Java?
Java is an object oriented programming language similar to C++ , but with
advanced and simplified features. Java is free to access and can run on all
platforms.

Platform: Any hardware or software environment in which a program runs, is


known as a platform. Since Java has a runtime environment (JRE) and API, it is
called a platform.

Features :
The primary objective of Java Programming language creation was to make it
portable, simple and secure programming language. Apart from this, there are
also some excellent features which play an important role in the popularity of
this language. The features of Java are also known as java buzzwords.

A list of most important features of Java language is given below.

1. Simple
2. Object-Oriented
3. Portable
4. Platform independent
5. Secured
6. Robust
7. Architecture neutral
8. Interpreted
9. High Performance
10.Multithreaded
11.Distributed
12.Dynamic
Object Oriented :
Java is an object oriented programming language. Everything in Java is an
object. Object-oriented means we organize our software as a combination of
different types of objects that incorporates both data and behavior.

Object-oriented programming (OOPs) is a methodology that simplifies software


development and maintenance by providing some rules.

Basic concepts of OOPs are:

1. Object
2. Class
3. Inheritance
4. Polymorphism
5. Abstraction
6. Encapsulation
CHAPTER-2

Topics Covered In Java

Basics Of Java :

Keywords : Java keywords are also known as reserved words. Keywords are
particular words which acts as a key to a code. These are predefined words by
Java so it cannot be used as a variable or object name. Examples – char, do,
float, etc.

Operators : Operator in java is a symbol that is used to perform operations.


For example: +, -, *, / etc.

There are many types of operators in java which are given below:

o Unary Operator,
o Arithmetic Operator,
o Shift Operator,
o Relational Operator,
o Bitwise Operator,
o Logical Operator,
o Ternary Operator and

Assignment Operator.
Java Variables : A variable is a container which holds the value while the
java program is executed. A variable is assigned with a datatype. Variable is a
name of memory location.
There are three types of variables in java:
• local,
• instance
• static.

Control Statements : These are the statements which are used to guide the
program in the proper and sequential orders. They are used to make the program
smoothly workable and user friendly nature.

Control statements are:

• if-else statement
• Switch statement
• For Loop
• While Loop
• Do-while Loop
• Break
• Continue , etc.

Java Object Class : In this we studied the concept of

▪ Object Oriented Programming (OOPs).


▪ Object and Class
▪ Constructor
▪ Static keyword
▪ this keyword
▪ Inheritance
• Single
• Multilevel
• Heirarchial, etc
▪ Polymorphism
• Method Overloading
• Method Overriding
• Super Keyword
• Runtime Polymorphism , etc
▪ Encapsulation (Packages)
▪ Wrapper Class
▪ Recursion

Exception Handling : The core advantage of exception handling is to


maintain the normal flow of the application. An exception normally disrupts the
normal flow of the application that is why we use exception handling.

Exception handling methods are:

➢ Try-catch block
➢ Multiple catch block
➢ Nested try
➢ Throw keyword
➢ Throws keyword
➢ By method overriding

Java Inner Classes :


Java inner class or nested class is a class which is declared inside the class or
interface. We use inner classes to logically group classes and interfaces in one
place so that it can be more readable and maintainable.

Types of inner class are:

o Member inner class


o Anonymous inner class
o Local inner class
o Static nested class
o Nested Interface

Multithreading : Multithreading in java is a process of executing multiple


threads simultaneously.A thread is a lightweight sub-process, the smallest unit
of processing. Multiprocessing and multithreading, both are used to achieve
multitasking.However, we use multithreading than multiprocessing because
threads use a shared memory area. They don't allocate separate memory area so
saves memory, and context-switching between the threads takes less time than
process.

Java Abstract Window Toolkit : Java AWT (Abstract Window Toolkit)


is an API to develop GUI or window-based applications in java. Java AWT
components are platform-dependent i.e. components are displayed according to
the view of operating system. AWT is heavyweight i.e. its components are
using the resources of OS.

The java.awt package provides classes for AWT api such


as TextField, Label, TextArea, RadioButton, CheckBox, Choice, List etc.

Java JDBC : JDBC stands for Java Database Connectivity. JDBC is a Java
API to connect and execute the query with the database. It is a part of JavaSE
(Java Standard Edition). JDBC API uses JDBC drivers to connect with the
database. There are four types of JDBC drivers:

o JDBC-ODBC Bridge Driver,


o Native Driver,
o Network Protocol Driver, and
o Thin Driver

By the help of JDBC API, we can save, update, delete and fetch data from the
database. It is like Open Database Connectivity (ODBC) provided by Microsoft.

It is used as a connection between different databases. The connection is made


by the help of various types of interfaces. Some popular interfaces are :

o Driver interface
o Connection interface
o Statement interface
o PreparedStatement interface
o ResultSet interface
o RowSet interface

CHAPTER-3

MySQL Database
What is MySQL?
MySQL is an open-source relational database management system (RDBMS)

MySQL is free and open-source software under the terms of the GNU General
Public License, and is also available under a variety of proprietary licenses.
MySQL was owned and sponsored by the Swedish company MySQL AB,
which was bought by Sun Microsystems (now Oracle Corporation).

MySQL works on many system platforms, including AIX, HPUX,


eComStation, i5/OS, IRIX, Linux, macOS, Microsoft Windows,etc.
Major features as available in MySQL

• Cross-platform support
• Stored Procedures, using a procedural language
• Online Data Definition Language (DDL)

Command-line interfaces
A command-line interface is a means of interacting with a computer program
where the user issues commands to the program by typing in successive lines of
text (command lines).
MySQL shell is a tool for interactive use and administration of the MySQL
database. It supports JavaScript, Python or SQL modes and it can be used for
administration and access purposes.ships with many command line tools, from
which the main interface is the mysql client
Application Programming Interfaces
Many programming languages with language-specific APIs include libraries for
accessing MySQL databases. These include MySQL Connector/Net for
integration with Microsoft's Visual Studio (languages such as C# and VB are
most commonly used) and the JDBC driver for Java

Uses of MySQL
It is used to store data in the system of our project. It gives us the free and wide
space of storage capacity for our program. It can be in graphical mode instead of
command line mode which is much more user friendly for the user to use and
understand and work with it.

In java it is used to maintain the table and work various operations in it.
CHAPTER-4

Project Discription

Library Management

I have decided to make my project on Library Management System. It is the


basis of the things that I have learned in the one month period during holidays.

It shows most of the knowledge that I have gained during the session of those
days in the seminar. By the help of the mentor I have made this project
complete.

It is the basic of all projets. Nothing complicated terms or views are not used
there but it is thebest way to test all your knowledge in one project only.

This project tells us about the internal function and external function of most of
the library. That how the management inside the library is working and how
they are able to maintain there library in the best possible manner.

I have taken basic things of library management to made this project short and
simple and to show earned knowledge in the seminar.

By the help of the various figures I will present my project.

All the data of differeent tables are stored in MySQL database.


Login :

Fig 1:Login

I have created this function to enable the user and the admin login. So, initially
when a user logs in for the first time, that user will be an admin by default, and
the username and password will be {admin, admin}.

For this schema, I have considered only one admin. So, once a user logs in as an
admin, he or she will be redirected to the admin menu as below. I will discuss
the functions of the admin in the admin menu section.

Admin Menu :
Fig 2: Admin Menu

Here you have various options which you can explore. This is only used by the
admin only.

Books Available :

When we click on the View Books Button from the Admin Functions. We will
be forwarded to books Available Menu.

Fig 3: Books Available

Here we can see that how many books are available in the library at that time.
View Users :

Fig 4: View Users

In the view user we are able to see the users. In this we are able to see only one
entry it is because we made only one user at this time.

Create/Reset
This functionality is used to create or reset a database. So, once you click on the
button Create/Rest, you will see the below output:
Fig 5: Create/Reset

Add User
To add a user, click on the option “Add User” and mention details such
as username, password and choose the radio button user or admin. By default, it
will be the user. Then, click on Create.

Fig 6: Add User Details

Once the user is created, you will see an output as below:


Fig 7: Confirmation Addition

Issue Book
Suppose, if you are the user, once you click on the Issue Book button, you have
to mention the Book ID, User ID, Period(Number of days for issuing the book),
and the Issue Date as follows:

Fig 8: Issue Book Details


Then click on Submit. Once, you click on Submit, you will see the below
dialog box:

Fig 9: Confirmation Issued

Now, if you want to see the issued books details, you can use the View Issued
Books functionality.

View Issued Books


Once you click on this button, you will see the following output:

Fig 10: View Issued Books

Alright, so, now if the user logs in to the system, using the login function, as
below:
Fig 11: Login by User

Then the user will see the below User Menu.

Fig 12: User Functions

Here, the user can view all the books in the database by using the View Books
option (same table opens as in the fig 3) and the books issued by the user in
the My Books section as below:

View Books
Fig 13: Issued Books

In this you can see the books that is issued by the admin for the reading and
various other details.

Now, if you wish to return the book, then you have to choose the option of
Return Book.

Return Book
Once, you click on the Return Book, mention the Issue ID and the return date as
below. Then click on Return.
Fig 14: Return Book

Then, you see a message box displaying the fine.

Fig 15: Fine Charged

After that, you again see a dialog box, showing the message “Book Returned“.
Fig 16: Confirmation Returned

Add Book
Click on the Add Book button, and mention the book name, genre and price.
Then, click on the Submit button.

Fig 17: Add Book

You will see a dialog box displaying the below message:


Fig 18:Confirmation Book Added

Apart from this, you can also, see the added books in the View Books

CHAPTER-5
Database Tables

In this we see that which database tables are being made and used by us in
making of the projects.

Which datatype is used in making the columns. Which is primary key and
amnay more things.

It will give us the information of the base of the tables. Which is helpful in
making in the project .

Now we are starting to make tables.

Books Available :
Fig 1: Books Available

Users List

Fig 2: User List

My Books

Fig 3: My Books

CHAPTER-6
Conclusion

I want to thank my trainer to share the knowledge with me and made me to


grow a better person with more abilities. The teachers are very supportive as
they help me to made my project and made me understand my concepts and
clear my doubts about the concept. Which helps me to build a better projects on
the java application.

This is the report on the Seminar/Training which I have done during the
vacations after Second Semester. In that vacation I have learned about core java.

The training was very helpful to me as it build my way of personal attitudes,


and how to adjust with my colleagous and about team work. In the training I
had given several test to get my certificate which is of A grade.

So, I am giving this report on the basis of my seminar and also shown the
project details with many figures and tables which I made during the training
period.

REFERENCES
[1] NPTEL
[2] JavaTpoint
[3] Coaching Materials

Potrebbero piacerti anche