0% found this document useful (0 votes)
10 views

Javafinal Report

The document discusses operators in Java. It provides an overview of different types of operators such as arithmetic, relational, and logical operators. It then presents a sample Java program that demonstrates the use of various operators like addition, subtraction, equality check, logical AND, and logical NOT. The program outputs the results of applying each operator on sample values to show their functionality. The document aims to help understand operators which are fundamental to programming in Java.

Uploaded by

DANISHSHEIKH
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Javafinal Report

The document discusses operators in Java. It provides an overview of different types of operators such as arithmetic, relational, and logical operators. It then presents a sample Java program that demonstrates the use of various operators like addition, subtraction, equality check, logical AND, and logical NOT. The program outputs the results of applying each operator on sample values to show their functionality. The document aims to help understand operators which are fundamental to programming in Java.

Uploaded by

DANISHSHEIKH
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

ANJUMAN POLYTECHNIC

MICRO-PROJECT REPORT
on

Operators in Java
Submitted by
1.Danish Sheikh (59)

Enrollment no:2000760166

2.Adnan quazi (49)

Enrollment no:2000760028

3.Umang Sayre (12)

Enrollment no:2000760021
Of COI3

Under the supervison of

Mrs. Asha Chauvan


LECTURER

FOR THE SUBJECT

Java Programming
In the academic year 2021-2022
CERTIFICATE
This is to certify that Danish Sheikh(59), Umang
Sayre(12), Adnan Quazi(49) they completed
their seminar work during diploma and the
report embodies the result of work. It is
therefore recommended for submission.

Name and signature of guide

Department Of Computer
Engineering
Annexure-I

Micro-Project Proposal

Operators in Java

1.0 Aim/Benefits of the Micro-Project -> Operators in java.

2.0 Course Outcomes Addressed ->

Co 1

3.0 Proposed Methodology ->

a) First we have studied and collected information about the topic.

b) Then we prepared a rough program to get an idea how the program will be.

c) We executed the program in visual studio code.

d) Then some errors occur then we modify the program and then the errors get
corrected and thus our program comes into its idealized state.

4.0 Action plan

S. Details of Planned Start Planned Name of


No. activity date Finish date Team
Member
1 Topic selection 5-3-22 18-3-22 Danish
sheikh,
Adnan Quazi,
Umang sayre

2 Detailed study 20-3-22 6-4-22 Danish


on sheikh,
Umang sayre,
Adnan Quazi
3 Started 10-4-22 18-4-22 Danish sheikh
making/writing
the program
4 Executing the 23-4-22 2-5-22 Danish
program sheikh,
umangsayre
5 Actual report 5-5-22 10-5-22 Danish
writing sheikh,
Umang sayre
6 Submission 12-5-22 24-5-22 Adnan Quazi
Umang sayre,

5.0 Resources Required

S. Name of Specification Qty. Remarks


No. Resources/material
1 System laptop Hp 1 -
15du3047tx
2 File Plastic file 1 -
3 Paper A4 size papers 10-15

6.0 Name of Team with Roll No.

1.Mohd Danish sheikh (59)

2.Adnan quazi (49)

3.Umang sayre (12)

******************

Annexure-II
Micro-Project Report

Operators in Java

1.0 Rationale->
Operators constitute the basic building block to any programming language. Java
too provides many types of operators which can be used according to the need to
perform various calculation and functions be it logical, arithmetic, relational etc.
Operators in java is useful for doing various types of operations such as addition,
subtraction, multiplication, logical ending etc. Java Operators are of prime
importance in Java. Without operators we wouldn’t be able to perform
logical , arithmetic calculations in our programs. Thus having operators is
an integral part of a programming language.

2.0 Aims/Benefits of the Micro-Project: Operators in java

3.0 Literature Review-> Since Java has so many operators, the


complete hierarchy has 14 levels. Rather than trying to memorize it and
expecting anyone reading our code to do the same, we use parentheses
to ensure that operations happen in the correct order.

4.0 Actual Methodology Followed


S. Details of Planned Start Planned Name of
No. activity date Finish date Team
Member
1 Topic selection 5-3-22 18-3-22 Danish
sheikh,
Adnan Quazi,
Umang sayre

2 Detailed study 20-3-22 6-4-22 Danish


on sheikh,
Umang sayre,
Adnan Quazi
3 Started 10-4-22 18-4-22 Danish sheikh
making/writing
the program
4 Executing the 23-4-22 2-5-22 Danish
program sheikh,
umang sayre
5 Actual report 5-5-22 10-5-22 Danish
writing sheikh,
Umang sayre
6 Submission 12-5-22 24-5-22 Adnan Quazi
Umang sayre,
Danish sheikh
5.0 Program->

public class JAVAmicro {


public static void main(String[] args) {
int a = 10, b = 10;
System.out.println("Types of operators in java");
System.out.println("The most used operators are from
\n Arithmatic\n Relational\n Logical ");
// arithmatic
System.out.println("\n\nArithmatic operators are + - *
/ %");
System.out.println("This operator(+) is used to add
two or more than two values " + (a + b));
System.out.println("This operator(-) is used to subtract
two or more than two values " + (a - b));
System.out.println("This operator(*) is used to
multiply two or more than two values " + (a * b));
System.out.println(
"This operator(/) is used to divide two values
and gives quotient of the division "
+ (a / b));
System.out.println(
"This operator(%) is used to divide two values
and return the remainder of the division "
+ (a % b));
// relational
System.out.println("\n\nRelational operators are == !
= > < >= <=");
System.out.println("This operator(==) is used to check
equality " + (a == b));
System.out.println("This operator(!=) is used to check
inequality " + (a != b));
System.out.println("This operator(>) is used to check
greatest value " + (a > b));
System.out.println("This operator(<) is used to check
smallest value " + (a < b));
System.out.println("This operator(>=) is used to check
equality as well as greatest value " + (a >= b));
System.out.println("This operator(<=) is used to check
equality as well as lesser value " + (a <= b));
// logical
boolean bool;
System.out.println("\n\nLogical operators are &&
|| !");
bool=((a == 10) && (b == 10)) ;
System.out.println(
"The operator(&&):if both the values of the
operand are non zero then this will give true "+bool);
bool=((a== 10) || (b==10));
System.out.println("The operator(||): if anyone of the
operand are non zero then this will give false" +bool);
bool=(!((a == 10) && (b == 10))) ;
System.out.println("The operator(!): this operator is
used to reverse the logical state of its operand,if condition is
true then not operator make it false:"+bool);
}
}

6.0 Outputs of the Micro-Projects->


Types of operators in java

The most used operators are from

Arithmatic

Relational

Logical

Arithmatic operators are + - * / %

This operator(+) is used to add two or more than two values 20

This operator(-) is used to subtract two or more than two values 0

This operator(*) is used to multiply two or more than two values 100

This operator(/) is used to divide two values and gives quotient of the division 1

This operator(%) is used to divide two values and return the remainder of the
division 0

Relational operators are == != > < >= <=


This operator(==) is used to check equality true

This operator(!=) is used to check inequality false

This operator(>) is used to check greatest value false

This operator(<) is used to check smallest value false

This operator(>=) is used to check equality as well as greatest value true

This operator(<=) is used to check equality as well as lesser value true

Logical operators are && || !

The operator(&&):if both the values of the operand are non zero then this will
give true true

The operator(||): if anyone of the operand are non zero then this will give
falsetrue

The operator(!): this operator is used to reverse the logical state of its operand,if
condition is true then not operator make

it false:false

7.0 Skill Develop/Learning outcome of this Micro-Project->

By making this microproject we have learned how to use different types


of operators and gain knowledge about it.

8.0 Application of this Micro-Projects ->

This microproject is used in java programming to do some specific


tasks.

9.0 Actual Resources Used


S. Name of Specification Qty. Remarks
No. Resources/material
1 Laptop Hp 1
15du3047tx
2 File Plastic file 1
3 Pages A4 size pages 10-15

10.0 Reference:

S. Name of Specification
No. Resources/material
1 Books
2 Websites https://www.w3schools.com

11.0 Name of Team with Roll No.

1.Mohd Danish sheikh (59)

2.Adnan quazi (49)

3.Umang sayre (12)

******************

You might also like