0 Up votes0 Down votes

4 views10 pagesassignment

May 11, 2017

© © All Rights Reserved

DOC, PDF, TXT or read online from Scribd

assignment

© All Rights Reserved

4 views

assignment

© All Rights Reserved

- The Woman Who Smashed Codes: A True Story of Love, Spies, and the Unlikely Heroine who Outwitted America's Enemies
- NIV, Holy Bible, eBook
- NIV, Holy Bible, eBook, Red Letter Edition
- Steve Jobs
- Cryptonomicon
- Hidden Figures Young Readers' Edition
- Make Your Mind Up: My Guide to Finding Your Own Style, Life, and Motavation!
- Console Wars: Sega, Nintendo, and the Battle that Defined a Generation
- The Golden Notebook: A Novel
- Alibaba: The House That Jack Ma Built
- Life After Google: The Fall of Big Data and the Rise of the Blockchain Economy
- Hit Refresh: The Quest to Rediscover Microsoft's Soul and Imagine a Better Future for Everyone
- Hit Refresh: The Quest to Rediscover Microsoft's Soul and Imagine a Better Future for Everyone
- The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution
- Autonomous: A Novel
- Algorithms to Live By: The Computer Science of Human Decisions
- Digital Gold: Bitcoin and the Inside Story of the Misfits and Millionaires Trying to Reinvent Money

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

- mr salinass math planUploaded byapi-316368388
- Chetan Microcontrollers Assignment 2Uploaded bySachin Shetty
- Bitwise OperationsUploaded byAnuruddha Bhattacharjee John
- Arduino Quick Guide123Uploaded byMadhav Reddy
- Esther_Kim_Term_III_Final.docxUploaded byAnonymous LdIJUra7
- Memory Representation of Double in CUploaded byfatihsigmanova
- Arduino Programming Reference by LucianoUploaded byHữu Bình
- List of c ProgramsUploaded byrameshscribd
- Math StandardsUploaded byForBlvd
- Computer DivisionUploaded byNikhil Cherian
- LM_004_Chp04.qxd.pdfUploaded bynaho
- Before a Few Days AgoUploaded byTouhid Ul Islam
- 1CheckedLincoln,WitHow Big is a Million AssessmentARichelUploaded by18rawita
- 1. Numbers.pdfUploaded byStudy Fever
- Grade 5 Unit 1 2011-2012 FINALUploaded bysasnews
- 417153008-Lesson-Plan-in-Dividing-Polynomials-Using-Synthetic-Division.docxUploaded bylynorey
- Alligation final sheet career launcherUploaded byAman Dwivedi
- Comprehensive Unit PlanUploaded byAnneke Mundel
- 3_Selection_Statements.pptxUploaded byEngr Nissar Kakar
- CK 12 Middle School Math Concepts Grade 6 b v51 z63 s1Uploaded bynavigator86
- GCSE in Mathematics LinearUploaded byRads53
- The Use of Euclids Division Lemma to Prove Mathematical RelationshipsUploaded bysubhro66
- octaveUploaded byDan Snzz
- Python tutorial.pdfUploaded byDiana Rusu
- Fractions.Text.Marked.pdfUploaded bySelvaraj Villy
- 35507446 Rancangan Pengajaran Tahunan MatematikUploaded byJegenthambal Arumugam
- 61-64WV51232Axx-BxxUploaded bysaurabh07tripathi
- Principles of Digital DesignUploaded byWin Hamafet Win
- Paper-3 an Efficient Frequent Pattern Mining in Health Care Database ComputingUploaded byRachel Wheeler
- Scan UT DatasheetUploaded byavazc

- IELTS Writing Answer SheetUploaded byHighPoint IELTS Preparation Services, Inc.
- Letter of Consent Demo For1mUploaded byramnik20098676
- html to pdfUploaded byramnik20098676
- E Myth Michael GerberUploaded byAgus Rfiai
- Ethernet CableUploaded byjaomia
- 01 Summer Intern Recruitment AssignmentUploaded byramnik20098676
- Change Request Form Cum NcdUploaded byramnik20098676
- reservation policy 1121Uploaded byramnik20098676
- 02 Campus Ambassador Recruitment AssignmentUploaded byramnik20098676
- MCA PROGRAMME GUIDE.pdfUploaded byAdarsh Smg
- Prepaid TariffUploaded byramnik20098676
- nrm1893-pf1Uploaded byramnik20098676
- Logic DesignUploaded byramnik20098676
- aqlUploaded byramnik20098676
- ePayPSPCL_Uploaded byramnik20098676
- swri_jc_030205bb.pptUploaded byramnik20098676
- SIPRI-Top-100-2002-2015Uploaded byramnik20098676
- (Www.entrance-exam.net)-TCS Placement Sample Paper 12Uploaded byShruti Gupta
- i-130Uploaded byramnik20098676
- Registration FormUploaded byramnik20098676
- form-1dispute-form.pdfUploaded bykiran sai
- eticketing_printTicketUploaded byramnik20098676
- 115006 Listening Sample Task - Matching Example 1Uploaded byCristiane Serban
- 2017-03-28-16-06-16-559_77348460_Uploaded byramnik20098676
- e Voting ResultsUploaded byramnik20098676
- tcs12Uploaded byRosy Mohapatra
- g-1145 formUploaded bysudeepk_sap
- InitiateSingleEntryPaymentSummary10-03-2017Uploaded byramnik20098676

- Cormen Lin Lee-Introduction to Algorithms (Solutions)-EnUploaded byAbdel fattah Awad El kariem
- Data Sheet - T 773 AV ReceiverUploaded bytargetisb2011
- Norma AAR-M101-Axle_2007.pdfUploaded byLolo
- FIltek Ultimate Tech Prod ProfileUploaded byDaybreake
- Www.pafumi.net Tuning Methodology.htmlUploaded bybalajismith
- GKF 2500 – Capsule Filling MachineUploaded byBosch Packaging Pharma NA
- CORDURA Brand Fabric Technologies-BaselayerUploaded byPeter Davidson
- Enhancement of heat transfer in six-start spirally corrugated tubes.pdfUploaded byJ.s.George
- chassis ppt.pptxUploaded byJyotirmai Sharma
- Whats_New_ION_Enterprise_6.0.pdfUploaded byIsaac Sidibe
- GE6151-Computer Programming.pdfUploaded bypsaravanan1985
- NASA_STD_6008_FINAL_2008_07_11 (1)Uploaded byShunmugavel Arumugasamy
- EjmUploaded byCésar Augusto
- Elite 21es63Uploaded bydann222
- 7. Virial Equation of State 2Uploaded bydnana
- The Goods Market and Money MarketUploaded byNazir Ahmed Zihad
- report aircraft elctrical system.docxUploaded byThiwagar Muniandy
- Harmonics Level StandardsUploaded byvoltus88
- Plan Outline+InstrsUploaded bySaqib Malik
- Data SheetUploaded byharikishan chowdary
- Company Profile of Pama PersadaUploaded byirsyadjamaludin
- Conf_Day_2_3 Narendra Deo Cost Effective Level Crossing Prot_IRSC - Cost effective system for Railway Level Crossing ProtectionUploaded byVipul Batra
- Hossein Jalali Thesis ChaptersUploaded byjulio1051
- Show FileUploaded bySaurabh Meena
- Modern Telecom Systems LLCUploaded byPriorSmart
- District 6 Fall Meeting.docx.pdfUploaded bySara Danielle
- senior project to do listUploaded byapi-321063259
- [PDF] ricco Summer Training Report.docxUploaded byRohit
- Power-Genius-Meters.pdfUploaded byAritheertham Saravanan
- ALPS 1Uploaded byandriydovbeta

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.