Professional Documents
Culture Documents
By
Vagish Kirubaharan
COL/A-051935
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 2
Task 1
1. Java is simple
The main features of Java in comparing with other programming languages, it is very simple
and easy to learn. Java is the object oriented programming language. As well as Java provides
the error free development environment for a programmer because it provides automatic
memory management by development environment and it eliminates pointers.
3. Java is Object-oriented
If a programming language wants to be an object oriented that language must support
characteristics of the OOPs, there for java is object oriented language. In the Java everything
is treated as objects to which methods are applied. java is a fully Object Oriented language
because object is at the outer most level of data structure in java. No standalone methods,
constants, and variables are there in java. Everything in java is object even the primitive data
types can also be converted into object by using the wrapper class.
4. Java is Distributed
It is widely used for file transfer protocols that HTTPS and FTP are developed in java.
Therefor Internet programmers can call functions on these protocols and can get access the
files from any remote machine on the internet rather than writing codes on their local system.
5. Java is Secure
Another attractive feature of java language is, it is secure than other language. Why say java
is secure, because java does not use local memory. The program which corded by java run
under an area known as the sand box. Security manager determines the accessibility options
of a class like reading and writing a file to the local disk. As well as the byte code verifier
checks the classes after loading.
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 3
No memory pointers
Programs runs inside the virtual machine sandbox.
Array index limit checking
7. Java is Robust
Robust means strong. Why say like that, java uses strong memory management, as well as
there are lack of pointers that avoids security problem, and java has their own automatic
garbage collection. As well as java has exception handling and type checking mechanism.
8. Java is Portable
The “write once run anywhere” concept gives the portability for java programming. We may
carry the java bytecode to any platform without any problem.
1.2
Java Virtual Machine (JVM) is an abstract machine which provides runtime environment for
the java bytecode. In other words, JVM acts as a layer between java application and the
underlying platform. As display name, JVM is a virtual machine or processor which
communicating with the physical machine. However, they are interacting with each other.
However, the attractive thing is JVM provides the ability to execute the application by
ignoring what is the platform, that means JVM provides platform independence ability for the
application. It considers as “write once, run anywhere” concept. Actually, the JVM is a part
of Java Runtime Environment (JRE). JVM which run the bytecodes calls classes that in JRE
when it needs to perform some actions, as well as JVM manipulates the underlying hardware
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 4
or the operating system to perform some actions. The byte codes want to minimize their
functionality and JVM has to do many tasks for them. The portability of java programs are
depend on the JVM and the communication between an application and underlying platform
are very sophisticated.
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 5
Task 3
Sequence:
Statements are executed in a specified order. Not a statement is skipped and no statement is
executed more than once.
Coding sample
Selection:
It selects a statement to execute on the basis of the condition. Statement is only executed
when the condition is true and ignored when it is false e.g. if, if else, switch structures.
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 6
According to the cord, “if” condition will be true only on the formula “diffInDays” (this a
variable in the cord) more than 14, then the if condition will be executed, otherwise it will
not be executed.
Repetition
In this structure the statements are executed more than one time. It is also known as iteration
or loop e.g. while loop, for loop do-while loops etc.
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 7
I used “while loop” to read the result of the query. This “while loop” continuously run until
the result of “rs” variable is end.
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 8
For Example
3:4
//what is java error handling
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 9
//advantages of it
3:5
I used “Java NetBeans” as my IDE. NetBeans is a free software that provides by “Oracal”
company for the java developers. When we talk about NetBeans, we have to say first that it is
a user-friendly software, why I say like that, first of all about NetBeans interface, it has been
created as doing cording is easy. NetBeans interface has three tab such as, “Source”,
“Design” and “History”
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 10
Now let’s see, the facilities by providing NetBeans when we create a software. First, should
be mentioned about the “palette”, which provides us the necessary logos and the important
tools which we want to create a software. By using these tools, we can create attractive
interfaces, only we want to do drag and drop which we want tool into the interface.
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 11
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 12
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 13
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 14
Task 4
4:1
Module no 1
Expected Result - Display success message and save field data into the “tbl_users”
table.
Status - True
Expected Result - Should be displayed a message call that “Please fill all fields
correctly”.
Status - True
Expected Result - Should be displayed message called “You have already registered”
Status - True
Expected Result - Should be displayed message called “Please, Enter valid member Id
of you”
Status - True
Status - True
Expected Result - Display success message and save field data into the “tbl_users”
table.
Status - True
Module 2
2 :1
Test data - Username = “user”, Password = 1234
Status - True
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 16
Status - True
1.3- Login with one field correct and other field incorrect
Test data - Username = “Sumeda”, ID = mem_10
Status - True
1.4- check whether according to the login person the main menu is change.
Test data - Username = “librarian”, Password = 4567
Status - True
Status - True
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 17
Status - True
• Module No: 03
3.1- Check whether “Book Id” auto display when page start
Expected Result - Next “Book Id” auto assign to the “Book ID” field when page start.
Status - True
Status - True
Expected Result - Should be displayed a message call that “Please, fill all fields
correctly”.
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 18
Status - True
• Module No: 04
Expected Result - Next “Member Id” auto assign to the “Member ID” field when page
start.
Status - True
Status - True
Expected Result - Should be displayed a message call that “Please, fill all fields
correctly”.
Status - True
• Module No: 05
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 19
Expected Result - All fields will fill according to the book of “book_1” details
Status - True
Expected Result - All fields will fill according to the book of “sulaga” details.
Status - True
Status - True
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)
Page 20
“tbl_users”
table
1.2 Incorrect User name = Display Go to the Fail
user name “Admin” “incorrect main menu
and correct Password = user name or
password 1234 password ”
4:3
1 : How are you satisfied with this system
FUTURE RECOMMENDATION
• Further we can add online exam part for our system and Graphical user interface
• We can improve our user manual to the users to use this system more easily
Vagish Kirubaharan
Read with Us – Programming in Java
(JAVA -16-001)