4 views

Uploaded by ramnik20098676

assignment

- Selection Making Decisions
- Chapter 2
- Operations With Integers
- Data Transfer Instructions.docx
- Fractions.text.Marked
- Micro Blaze
- Vedic-Maths-tips
- Python
- bahagi
- rules for decimals -x divide
- 9351760146_Fast_Track.pdf
- Plc Transmit Instruction Mov Smov Cmov Bmov Fmov
- Class 5english Math.pdf
- Algebra Integral
- Packer Calculations Secure
- Design and Implementation of DMC for Memory Reliability Enhancement
- sm_01_final
- Maths Shortcuts
- Averages
- complex numbers.pdf

You are on page 1of 10

programming language

JAVA

Submitted to

submitted by

Mr. Mohit Angurala

Girish Puri

2014CSA1715

B.tech CSE

Java has a rich set of operators with which we can manipulate

variables. Java operators can be divided into the following

groups :

1.ARITHMETIC

2.RELATIONAL

3.BITWISE

1. ARITHMETIC OPERATORS :

In mathematical expressions, the usage of Arithmetic operators

are in same way that they are used in algebra. The following

table lists the arithmetic operators:

then:

Sr.No.

Operators and examples

( + ) Addition

1 It Adds values on either side of the operator

Example: A + B will give 95.

( - ) Subtraction

2 It Subtracts right-hand operand from left-hand

operand

Example: A - B will give -15.

( * ) Multiplication

3 It Multiplies values on Left and right side of the

operator

Example: A * B will give 2200.

( / ) Division

4 It Divides left-hand operand by right-hand

operand

Example: B / A will give 1.375.

( % ) Modulus

5 It returns remainder after dividing left-hand

operand by right-hand operand

Example: B % A will give 15.

( ++ ) Increment

6 Increases the value of operand by 1

Example: B++ gives 56.

( -- ) Decrement

7 Decreases the value of operand by 1

Example: B-- gives 54 .

2. RELATIONAL OPERATORS

It is a programming language constructor or operator that test

or define some kind of relations between two entities. These

include numerical equality and inequalities. Relational

operators are binary operators. It returns boolean value I.e.it

will return true or false. Most of the relational operators are

used in if statement and inside looping statement in order to

check truthness or falseness of condition.

== (equal to)

then condition will be evaluated true.

Example: (A == B) is false.

It Checks whether the values of two operands are equal or not,

if values are unequal then condition will be evaluated true.

Example: (A != B) is true.

the value of right side operand, if yes then condition will be

evaluated true.

It Checks whether the value of left side operand is less than the

value of right side operand, if yes then condition will be

evaluated true.

It Checks whether the value of left side operand is greater than

or equal to the value of right side operand, if yes then condition

will be evaluated true.

equal to the value of right side operand, if yes then condition

will be evaluated true.

3. BITWISE OPERATOR

These operator operates on one or more bit patterns or binary

numerals at the bit level. It is a fast and simple action directly

supported by the processor, and it is used to change values for

calculations and for comparisons,

different types like integer, long, short, char, and byte.

bits.

format, they will be as follows:

a = 0011 1100

b = 0000 1101

-----------------

~a = 1100 0011

Type of Bitwise operators are following :-

operands. i.e. the bits which are common in both will be 1 and

else will be 0.

( | ) bitwise or

operands. i.e. the bits which are 1 in any of a or b will be 1 else

will be 0.

( ^ ) bitwise XOR

operand but not set in both. i.e. the bits which are 1 in only one

operand will be one else will be 0.

4

( ~ ) bitwise compliment

in 2's complement form is 1100 0011.

5

( << ) left shift

by that number of bits which are specified by the right

operand.

moved right by that number of bits which are specified by the

right operand.

moved right by that number of bits which are specified by the

right operand and those values are filled up with zeros which

are shifted.

Example: A >>>2 will give 15 which is 0000 1111

- Selection Making DecisionsUploaded byTuan Hoang
- Chapter 2Uploaded byMichael Racelis
- Operations With IntegersUploaded byodette_7th
- Data Transfer Instructions.docxUploaded byOjibwe Unanimes
- Fractions.text.MarkedUploaded byAdiseshuMidde
- Micro BlazeUploaded bygpuonline
- Vedic-Maths-tipsUploaded byVikram Samal
- PythonUploaded byjitender_13
- bahagiUploaded byjemapoh123
- rules for decimals -x divideUploaded byapi-94973087
- 9351760146_Fast_Track.pdfUploaded byVijay Kumar
- Plc Transmit Instruction Mov Smov Cmov Bmov FmovUploaded byNatKTh
- Class 5english Math.pdfUploaded byUsman Faruque
- Algebra IntegralUploaded byDomingo Zapana Diaz
- Packer Calculations SecureUploaded byEmre Cengiz
- Design and Implementation of DMC for Memory Reliability EnhancementUploaded byAnonymous kw8Yrp0R5r
- sm_01_finalUploaded bySiddharthSaini
- Maths ShortcutsUploaded byRamkumar Sivakaminathan
- AveragesUploaded byAnil durgam
- complex numbers.pdfUploaded byArchitIIT7
- ApproachUploaded byAnbu RancHo
- ece_palatandaan.pdfUploaded byToby Dator
- Aptitude C-CAT ques Part-1.pdfUploaded byPriti Pandey
- A2T Ch9 ReviewUploaded bykahitchcock
- Judge Only One Name Said MchaaliaUploaded bysfofoby
- math lesson planUploaded byapi-242199368
- M Bus Documentation AnnotationsUploaded bymcmayer
- EP03-440-200_v_1_0Uploaded byemailabenk
- New Ippm and RruUploaded byRv Salazar
- 334expUploaded byLouis Guy

- i-130Uploaded byramnik20098676
- Ethernet CableUploaded byjaomia
- Prepaid TariffUploaded byramnik20098676
- TCR-Material-Testing-Price-List-India-2012.pdfUploaded byramnik20098676
- Eepc IndiaUploaded byramnik20098676
- nrm1893-pf1Uploaded byramnik20098676
- swri_jc_030205bb.pptUploaded byramnik20098676
- reservation policy 1121Uploaded byramnik20098676
- aqlUploaded byramnik20098676
- MCA PROGRAMME GUIDE.pdfUploaded byAdarsh Smg
- Book WipUploaded bykailashrawat
- SIPRI-Top-100-2002-2015Uploaded byramnik20098676
- Logic DesignUploaded byramnik20098676
- (Www.entrance-exam.net)-TCS Placement Sample Paper 12Uploaded byShruti Gupta
- ePayPSPCL_Uploaded byramnik20098676
- 2017-03-28-16-06-16-559_77348460_Uploaded byramnik20098676
- 115006 Listening Sample Task - Matching Example 1Uploaded byCristiane Serban
- InitiateSingleEntryPaymentSummary10-03-2017Uploaded byramnik20098676
- 02 Campus Ambassador Recruitment AssignmentUploaded byramnik20098676
- ashish.pdfUploaded byashish
- eticketing_printTicketUploaded byramnik20098676
- form-1dispute-form.pdfUploaded bykiran sai
- IELTS Writing Answer SheetUploaded byHighPoint IELTS Preparation Services, Inc.
- Registration FormUploaded byramnik20098676
- tcs12Uploaded byRosy Mohapatra
- e Voting ResultsUploaded byramnik20098676
- Eti Base Code - HindiUploaded byramnik20098676
- 01 Summer Intern Recruitment AssignmentUploaded byramnik20098676
- g-1145 formUploaded bysudeepk_sap

- Paper on comparison of various models.pdfUploaded byAkshat Sehgal
- Creating Realistic Fire in Blender 2.5Uploaded bymixer5056
- YAlGuwaiflgi ProjectUploaded byAmino file
- Deep Mind LabUploaded byMainul Hasan
- A Construction Procurement Method to Achieve Sustainabili 2016 Procedia EngiUploaded byPatrickdz
- Formula Student Adams ModelUploaded byOliver Grimes
- 4 Major Principles of ObjectUploaded byDoan Minh Quy
- Mysql Installation GuideUploaded bysujathalavi
- CARPROG BMW Key Programmer ManualUploaded byTiberiu Si Alina Timoc
- NetBeans IDE Guide for JBuilder UsersUploaded byjesusmlaz
- Chapter 1 Case Study AnswersUploaded bygmarron1
- rh-134Uploaded bysatya28
- Bicsi Sp 2013 Cabling Standards Peter Meijer - Monday 18 March 2013Uploaded bymanuel_897
- Ehlers (CG Oscillator)Uploaded byseanunr
- Forticlient 5.4.0 Mac Os x Release NotesUploaded byAdrian Vargas
- CSIC July 2013Uploaded byprof_kt
- Std SAP Pgms UsefulUploaded bynileshforyou
- JTW 106E JUW 106E Chapter 17 April 20 2018.pptxUploaded byNhirrmaldaran Vejayandaran
- Jordan FormUploaded bymichel_faleiros
- Mathematics_Grade_10_Ch16_ProbabilityUploaded byapi-19999615
- Sample Digital Marketing India ResumeUploaded byAkshat Kharbanda
- 945gclf circuit diagramUploaded byBala Murugan
- CBC - 2D Digital Animation NC IIIUploaded byKarl Jc P. Bongcasan
- Remedy User GuideUploaded bychamalcohol
- Dnb360 Setup Sapc4cUploaded bydavsandhu
- contraves 731SUploaded bycesare.alceste
- XenoView ManualUploaded bysrokkam
- 31010BAR-HUAWEI B260a Series Wireless Gateway User Guide-%28V100R001_02%2CEn%2CNormal%29Uploaded byLGMR31
- SAP FICO Configuration MaterialUploaded bypwalenb1234
- QTP Interview QuestionsUploaded byRamu Palanki