Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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
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
4. Project Discription 15
5. Database Tables 26
6. Conclusion 28
7. Refrences 29
LIST OF FIGURES
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.
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.
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.
1. Object
2. Class
3. Inheritance
4. Polymorphism
5. Abstraction
6. Encapsulation
CHAPTER-2
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.
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.
• if-else statement
• Switch statement
• For Loop
• While Loop
• Do-while Loop
• Break
• Continue , etc.
➢ Try-catch block
➢ Multiple catch block
➢ Nested try
➢ Throw keyword
➢ Throws keyword
➢ By method overriding
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:
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.
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).
• 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
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.
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.
Here we can see that how many books are available in the library at that time.
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.
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:
Now, if you want to see the issued books details, you can use the View Issued
Books functionality.
Alright, so, now if the user logs in to the system, using the login function, as
below:
Fig 11: Login by User
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
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.
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 .
Books Available :
Fig 1: Books Available
Users List
My Books
Fig 3: My Books
CHAPTER-6
Conclusion
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.
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