Java Basic

112 

Loading.... (view fulltext now)

Loading....

Loading....

Loading....

Loading....

Full text

(1)m. Java Basic Chapter - 1m m "hat is Programming?m  mm   m

(2) mm  mm

(3) m

(4)  mm m

(5) 

(6) 

(7) mmmm

(8) mm  m m 

(9) 

(10) m m  

(11) mm 

(12) m

(13) m m

(14) m

(15) m m  

(16) mm   mm 

(17)  mm m

(18) mm  m

(19) m m  m  m

(20)  mm m  m mmm

(21) 

(22) m  m  mm

(23) m  m m

(24) mmm. m 

(25) 

(26) mmmm

(27) mm

(28)  m  m m

(29) 

(30) mm mm mm  

(31) mm mm m

(32) m m! mm

(33) mmmm  m "m "hat is Java?m #m

(34) mm  m$   m m  m   mmm m% 

(35) 

(36) 

(37) m mm

(38) m

(39)

(40)   mmm m mmmm

(41) m m mm mmm&m

(42) m m   m m m mm 

(43) m   

(44) m m    m' 

(45) m&m m  m!

(46)  m

(47) mmmmm   mm

(48)  

(49) m mm m   m  m  m mm ((

(50) mm m )  m*++m

(51) m  m

(52)  mmm$ m  m m  

(53) m m 

(54) m mm m   m m   mmm   mm m  m*,

(55) mm mm m% 

(56) 

(57) 

(58) m   m m- m%m  m mm  mm #

(59) m.

(60)  

(61) m    mm  m m   m m  mmm  mm 

(62) m    m  

(63) mm  mmmm m

(64) m

(65)  m  mmmm 

(66) mm  m m m  m   m

(67) m

(68)  m

(69) m 

(70) m  m    m  

(71) m& mmm (( mmm m   m

(72) m m  mm/m0m m mm

(73) m m    

(74) mm

(75) m  m

(76) m#m m m ((1m m#m m

(77) m  m 

(78)  mmm m #m

(79) m    mm* m*++ m  m m m

(80) m   m

(81) mm

(82) m m  

(83) mm  m m

(84) m

(85) m  mmm

(86)  m  m2m / m3 m 4mm

(87) mm  m  m m m m m  m' mm#m 5 m%  m6#5%7m

(88) m  m

(89) m   m m m

(90) mm m

(91) 

(92) 

(93) m   m 8 ! m 

(94) m 

(95) m m9,:m m ;m "here Java is used? m

(96) 

(97)    mm  m

(98) mm#m

(99) m mm&  <m&

(100)  m=mmmmmm. m.

(101) m. m m

(102) mm  mmm    m6m

(103) m    7m  mm  mm

(104)  mm m

(105) mmm  m m

(106) m 

(107) m    m  

(108) m

(109)  m

(110) m m

(111) m mm  

(112) m

(113) mm  m m

(114)

(115) m m m  m

(116) mm*,

(117) mm

(118)  m

(119) m   

(120) m m m  m#m

(121) m   mm m% 

(122) 

(123) 

(124) m mmm ((1m)  mm 

(125) m m

(126)  mm 

(127)  m mm

(128)  m  m  

(129) mm m  m

(130) m mmm  m   m m  mm

(131) m mmm#m

(132) m

(133) mm  mm.  mm  m m m m   m 

(134) m8 !m m/ m  m

(135) m   mm mm m  m

(136) mm mm m 

(137) mmm   mmm$ m  m

(138) m m   mmm

(139)  m  

(140) mm mm  mm m mmmm  

(141) m m  m 

(142) m  m   m*

(143) m  m 

(144) m m mm  m  

(145) mm m #m

(146) m  m m  m>m JSP ¬m8m9m m m#mm

(147) m

(148)  m mm  mm  m9%8m

(149) m m 

(150) m  m  m   mm

(151) mm m Java Appletsm¬m

(152) m

(153) m mmm#mmm

(154)  m mmmmm m m m 

(155) mmmm

(156) m

(157) mm

(158)  mm

(159)  m mm mm

(160)  m

(161)

(162)   m. m

(163)   m

(164)   m

(165) m  !m    m mm mm

(166) 

(167) mm m J2EEm¬mm

(168) m#m"m) 

(169) m)  mm

(170)  mm

(171) m  

(172) mm

(173) m m

(174)  m  m:%8m

(175)   m   

(176) m m m mm m JavaBeansm¬m

(177) m

(178) m

(179)  m m5

(180)  m0

(181)  m mm

(182)  m

(183) m   mm  mm 

(184)  m

(185)

(186)  mm m

(187) m m m   m   m m 

(188) mm

(189) m

(190)  !m

(191) m    m#m

(192) m

(193)  m

(194) mm*m m  mmm 

(195)  m

(196)  mm.   m&m 

(197) m mm  m m

(198) m m 

(199) m m

(200) m  

(201) m  m 

(202) m

(203)    m m&

(204) mm m m/$ m/  m m6//7m  m

(205) mm

(206) 

(207) m m //m

(208) m   m 

(209)

(210) 

(211) m  

(212) m   m 

(213) m mmm m. m.

(214) m. Jobile Java - 0

(215)  

(216) mmm    m#m

(217) m

(218) m

(219)  mm

(220) m   m  

(221) m 

(222)   m m m% m&  m? 

(223) m m6%&?7m

(224) 

(225) m#m mm   m  m  m 

(226) m m  m

(227) 

(228) 

(229) m mm   m?m  

(230) m#m   m   m    m

(231) mmmm

(232) m m

(233)  

(234) m  m mm m m

(235) m

(236) m 

(237) m m  m m mm mm    m

(238)  m

(239) m

(240) %m

(241) mm

(242) m m   m

(243) m.    mm

(244) m  m   m

(245) mm

(246) 

(247) m  mm

(248)  m mmm m 

(249)

(250) mm    m   m m   m m

(251)  m m m- m

(252) m5  mm

(253)  m#m   m  m#m 

(254)

(255) m m

(256) m  m

(257) mm   m  m%&?m   mmmmmmmmm #m   m

(258) m   mm m   m 

(259) 

(260) mm mm m   m m   m    m  m

(261) 

(262) m m

(263) mm  mm m

(264) 

(265) mm 

(266) m  mm

(267) 

(268) m m  m  

(269) m m  

(270) mm m#m   m m 

(271) mm  m m   m

(272) m   m%;m 

(273) m  m5 m  m;? m

(274)   m

(275) m m Java Releasesm. ’he Creation of Java ). #m

(276) m   mm#

(277) m.

(278)   m m- m*

(279) m m) m@  m m%m  mm  m% 

(280) 

(281) 

(282) m& m m (( m&mm Am 

(283) mm  mm

(284) m m

(285)  m

(286) m  m

(287) m   m   m2/ 4mm

(288) m  m2#4m m ((1m0 mm  m   mm/m mm m m (("m mm  m   mm#m mm

(289)  mm ((1 m mm m   mmm 

(290)  m m  mmm  m0 m# mm m9 m#  m  m@ mB  m mm 8  mmm  

(291) mmm mmm  mm#m

(292) m   mm m % 

(293) 

(294) 

(295) m m ((Cm-mm#m

(296) m m

(297) mmm   mm

(298) m m

(299)   m  

(300) m  

(301) mmm m 

(302) m m m m  mmm m mmm 

(303) 

(304) mm  m

(305) 

(306) mm #m   mmm. ^    m J  m

(307)  m   m

(308)  m m

(309)  m    m

(310)  m   m

(311)  m

(312) m

(313)   m    m

(314)  ! "#$ $$%%      m &

(315) # 'm

(316)  ! "#$ $$%%  ( Jm &

(317) # ('m

(318)  ! " ) % $%%     m &

(319) 'm

(320)  ! "#$ $$%% &

(321) #'mm m.  m m m m m m m m m m m.

(322) m

(323)    ) *% &

(324) * 'm

(325)    ) *%  &

(326) *  'm

(327)    ) *% &

(328) * 'm.    m    m

(329)  m. m +m m. [ownloading J[ (Java) m. m

(330) m#?Dm6#m?  mD7m¬m #?Dm

(331) mm

(332) m   mm  mm

(333)  m% 

(334) 

(335) 

(336) m#m?  mDmm#?Dm. 

(337) m m

(338) m

(339)  m m  mm    mmmm

(340)  m% 

(341) 

(342) 

(343) m#5%m   m m mmm

(344) mm

(345)  mm#?Dmm   m$m

(346)  m   mEm$m 

(347) mm m

(348) mmm#5%m  mEm#?Dm

(349) 

(350) mm

(351) mm #?Dm

(352) m  m

(353) m#m"m  mm 

(354) m mm 

(355) m#"%) m#")mEm#"))m&mmm  mm   m#m m

(356) mm    m#")m Acronyms:m J[ mm#m?  mDm JVJmm#m m  m [ownload J[ You can download J[ from www.javasoft.com/j2sem Installing Javam [ownloading and Installing J2SE Software on "indows Platformm m   m#")mm   m

(357) mhttp://www.java.sun.com/j2sem m   m#")m m m  m& m

(358) m mmm

(359)  m$  F1FFC 

(360) 1AC!m$m" mm6#?D7m.  mm    mmm

(361)  m@ mD  m

(362) mm$m?  mm m#?D m?   m $m

(363) m mm    mm$m"m mmm 

(364) m mm 

(365) m m#"%) m#")m m#"))m mmmm   mm$ m mm

(366)  m

(367) mm    mm#"))m / mmm    mm$"

(368) m mm

(369) 

(370)  mmm mm

(371)  mm& mm  m

(372)   mm  m  mmm

(373)  mm$ m   m   m mm  mmmm

(374) mm

(375)  m#?Dm  mm 

(376) m  m Step 1m. m.

(377) m. ? m  mm#?Dm  m   m  mm!  m! 

(378) mm' m*  

(379) mmmm  m m m8 

(380) m m

(381)  mm

(382) m/ mm  

(383) m mm m m. m m  

(384) m mm  mm !m mm m m m m m Step 2m m 

(385) m

(386) m

(387)  m

(388) m

(389) m 

(390) m m. Step 3m *  m mm  m mm  mm

(391)   m  mmGc:\jdk1.5.0_06Gm

(392) m

(393)  m mm   m

(394)  m m m m m. m.

(395) m. m  m  m mmG/DGm mm   m mmG/DGm m

(396)   m

(397) >m m m m. Step 4 & mm !m m

(398)  m

(399) 

(400) mmm

(401)   mm m

(402) m

(403)  m mm  m

(404)  >m m. Step 5m *  m m !m m

(405)  mm#")m m mm  m-!m

(406)  m

(407) 

(408) mm

(409) m

(410)    >*  m mmG-!Gm m. m.

(411) m. Step 6 / mm

(412)   m

(413) m 

(414)  mm

(415) 

(416) mmm  m

(417)  m  

(418) mm

(419) . 

(420)

(421) m-mmm

(422) . 

(423)

(424)  m

(425)   m#")m mm  m&

(426)  m

(427) 

(428) mm  m  m   m m

(429) mm m m m m

(430)  m >m *  m mmG@ 

(431) Gm mm!mmm

(432)  m Configuring the installation on windows machine:m & m

(433) m  mm m m

(434) m

(435)  

(436) mmm 

(437) m   m

(438) mmm$m  m m  m 

(439) m  mm   m m  mm$m   m .mmm   m  m m  m  m mG

(440) m

(441) Gm mmmm  mmm m m m m m m m m m. m.

(442) m  m mGc:\jdk1.5.0_06Gmmm >m. m  m  m mm mm

(443) mm

(444)  m  m mG/DGm m Understanding Java S[ [irectory Structurem 

(445) m

(446)   m   

(447) mm? m m m

(448)  mmS[ m6m?  mD7mm  m m

(449) 

(450) m$  1m

(451) m

(452)  m mH Hm  mm

(453) m  m

(454)   

(455) m m m  m   m m$m mm m m m   m m

(456)  m

(457) mm  m  m m S[ [irectory Structure:m. m Subdirectories of the S[ :m ’   

(458)   m. m.

(459) m. Bin directorymmm m  m 

(460) m m 

(461)

(462)   m

(463) mm   m m

(464)  mmm mm mm  m  mm#m  m [emo directory - 

(465) m  m 

(466) 

(467) 

(468) m m  

(469) m m 

(470) mm

(471)  m  mm Include directory m&m  

(472) m m m 

(473) m mmH*Hm m  mm  

(474) mmm.  m*m  m mm#mm Jre directorym-  mm m m$mm mmmm  mmmm mmm#m  mm#m3 m)   m6#3)7mm?Dm

(475) 

(476) mm   m  mm#3) m m.    m mm$mm  m Lib directory m

(477) m

(478) mm

(479) m m  mm   m

(480) mm  

(481) m 

(482) m mH

(483) m

(484)  m 

(485) m [ocs directory m&m

(486) mm 

(487) m  mmm?  mDmm

(488)

(489) 

(490) 

(491) mmm

(492) mm#m   

(493) mm 

(494) m  m

(495) m m  m  m Files of the S[ :m 6    

(496)  

(497)      

(498)     m REA[JE.html : m$  1m  m 

(499) m m m mm  

(500) mm  m  mm?Dm

(501)  m mmm

(502) m

(503) m m  

(504) m m

(505) 

(506) m' 

(507) m

(508) m m    m  

(509) m m

(510)  

(511) m m  H

(512) mmm$  1m scr.zip: mIm m

(513) mm    mm mmm 

(514) mm

(515) m m 

(516)

(517)  mm

(518)  mmHIHm !

(519)  m   mm

(520) 

(521) m m  

(522) mm

(523)  m  mm?Dm&m m  

(524)

(525) mm! mm  mm   mm

(526)  m  mmmJ&m mmm "riting Hello "orld Java programm #m

(527) mmm  m m  m mm

(528) m

(529)  mm  mm

(530) m   m#m    mm

(531) m m   m m  mm m m m m

(532) m m9 m  mm

(533) mm

(534)  mmmm9 m mmm  mm

(535)  m!m m m m m  mm$ m

(536) mm

(537)  m mm  mm   m m  m9 m mm

(538) mm

(539) m

(540) mm $m mm  m0m  m mmmm$m  m mm!m m 

(541) m$m

(542) mm. 

(543) m

(544) 

(545) m m  m. m.

(546) m. mFor Examplem hello world !=(not equal to) Hello "orldm mm  m  m mm m mm mm9 m mmm. Ú m  mm mmm ÚmÚmm 

(547) m  m mmm    

(548)  m 

(549) m mmm m m mm m m 

(550) mmm   mmm

(551) mm m& m

(552) m! mmm

(553)  m m m mmGC:\javatutorial\exampleGm  mm m m

(554)  mm mm 

(555)

(556) m m mm

(557) mm mmm$m!

(558)  mm Hello"orld.javam -m mm  mmm  mm9  $mm.mmm  mmm m

(559)  mm m6m mm 

(560) m*>K$ K! L7m m

(561)

(562) mm  m  mm  m m>m C:\javatutorial\example>javac Hello"orld.javam javacm

(563) mm  m mm$m8 m#m  m  mm m8 m m   m  mmmm$m m  m 

(564)  mm/ mm   m

(565) m

(566) . 

(567)

(568)  mm m  m mm  mmm mHello"orld.class. mm mmm

(569)

(570) mm  m  m m.  m>m C:\javatutorial\example>java Hello"orldm Bm m

(571) mm  m

(572)  m mm  mm Hello "orld!m 9m

(573) mm

(574)  m

(575) mmmm

(576) 

(577) >m m m m. m.

(578) m. m m & m

(579) m 

(580)

(581)  mmm   mmmm m m

(582) mm9 m <m$mm Understanding Hello "orld Java Programm -mmm mmm#mm& mm 

(583) m 

(584)

(585)  mm   mmm  m m mm #mm0m

(586) m m m m# m

(587) m  

(588)

(589) mm 

(590)  m m mmmm mm8

(591) m 

(592)  mm  mmm  m 

(593)

(594) m m MNm

(595) m

(596)  m m

(597) m m. mmm ÚmÚ m  mmm. mm ÚmÚmm 

(598) m  mmm mm    

(599)  m 

(600) m mmm m mmm m. Class [eclaration:m * 

(601)

(602) m

(603) mm  m  m m# m m mm

(604) mEm m!

(605) 

(606) m mm 

(607)

(608) mm$ m 6

(609)  mmm

(610) m   m$ m7mm| m m

(611)  

(612) mm. 

(613)

(614)  mmm 

(615)

(616) mm 

(617)  mmm 

(618)

(619) mm  m  mm  m m mm  m  m  

(620) mm m 

(621)

(622) m G9  Gmmm  m. 

(623)

(624)  >m   m 

(625)

(626) m9  mOmm. m m% >mm m m m

(627) mm m m mm#mm m$mm  Hm mm m m #5%m 

(628) mm m mmm 

(629)

(630) m

(631) m m

(632) m 

(633) m

(634) m mm

(635) m!  m mm$m m9m

(636) mm m >m   m

(637)  m m 6 MNm

(638) 7mOm m m. m.

(639) m. 'm Om m

(640) m

(641)  mm

(642) mm  mm m  m m'm

(643) mm m  m)m m mm m  m 

(644) m!  mmm#5%m m  >m 

(645)   6G9  m G7m  

(646) mmG9 m Gm mm 

(647)  mmm  m 

(648) mm|m mm 

(649)  m 

(650)

(651) m ’he keyword static:m m mstaticm  

(652) mmm m

(653) mm. m m m  mm   mmm ' mm

(654)  m m$ mmm 

(655)

(656) m

(657) m

(658) m

(659)  mmm#m mm  mm mm  mmmainm mmm 

(660)

(661) m   m mm  mm

(662) mmmm. m.

(663) m. Chapter ± 2 [A’A ’YPES #m m  m

(664) mm  m m m mm 

(665) m

(666) mm   m

(667) m m mmm 

(668)  mm

(669) mm

(670)  mm m mmmmm m

(671) m

(672)  

(673) mm#m

(674) mm

(675)     m m  m8 mm m  mPm m 

(676) m

(677) 

(678) mmm!

(679) 

(680) mm m  mH  Hmm

(681) mm m

(682) mm   m mH Hmm 

(683) m.    mmm 

(684) m  

(685) m

(686) m mm mmmm

(687) m mm ’here are seven more primitive data types which are supported by Java language programming in addition to int. mm mm

(688) mm mm m

(689) m   m m#m@  mmmm m m

(690) >m int &m

(691) mm;"m

(692)   mH

(693) m   m m mm&m 

(694) mm" QR QA; CQAmm" QR QA; CQRm 

(695) m mm

(696) m

(697)  mm m 

(698) m9mm m mm 

(699) m

(700)  longm bytem mm mm

(701) m mAm

(702)   mH

(703) m   m m&m 

(704) mm "Am "Rm6 

(705) 7mm.  m

(706) mm m m

(707) m

(708)  mmm  m

(709) m

(710) mm

(711)  mm mmm 

(712) mm mm m  m shortm m

(713) m mm

(714) mm Cm

(715)   mH

(716) m   m m&m 

(717) mm;" RCAmm;" RCRmshort

(718) m 

(719)  mm

(720) mm m m

(721) m longm m  m mm

(722) mmCQm

(723)   mH

(724) m   m m&m 

(725) mm ( ""; ;R" ;C A1Q RR1 AAmm( ""; ;R" ;C A1Q RR1 ARm,

(726) m

(727) m mmm m mm  

(728) mmm floatm m m mm

(729) mm

(730)    

(731)  m;"m&)))mR1Qm  m m&m 

(732) mm Q "(AQCQ;"QA RRQ1mm;Q"A";QCC;A1"AAC+;Am6

(733) mm 7m,

(734) mm m6

(735)  mm. m.

(736) m.  7mm

(737) mm m m

(738) mm m m

(739) m

(740) m mmmm! m 

(741) m

(742)  m

(743) m.  m@mmmmm

(744) m$0?  m 

(745)

(746) mm double 

(747) m mm

(748) mm   

(749)  mCQm&)))mR1Qm  m m&m 

(750) mm Q(QC1CQ1AQ "QC1QQ;"Q mm R(RC(; ;QAC"; 1R+;A m6

(751) mm 7m

(752) m mm

(753) m   mm  m  mm   m 

(754) mm booleanm m  m mm

(755) m mm m

(756) m mm 

(757) >mtrue  mfalsemm

(758) m

(759) m mmm.    m

(760)  

(761) mm m

(762) mm mm

(763) m

(764) mm m@

(765) mmm   m 

(766)  

(767) mm m  mm charm m m mm

(768) mm

(769)   m C m

(770)   m,   m  m&m 

(771) mmmmC1 1;1mmm m

(772) m

(773) m 

(774) m

(775) 

(776) m m m  m m

(777) 

(778) mm  m 

(779) mmm m

(780) >m m. m* , $mm  %)% m m   m m m   m mmm. m m  m. m m. m  mm. m  mm. m m  mm. m  Ú m   m m m Ú m m m   m m mm m mÚmm ÚÚmm mm  m m m  mm mm  mm m m. m. m#%- . m mmm Ú  m mmm Ú  m mmm Ú  m mmm Ú  m mmmm mmmm mm Úm ÚÚm mmm m.

(781) m.  mm  mm mm

(782) m m 

(783) m

(784)

(785)   mmm  Immmm  m

(786) 

(787) mm  m m mm

(788) m mm m  I m mmmImm  m9m

(789) m

(790) m m   mm. Stringm m mm

(791) m

(792)  mm  m

(793)  m 

(794) mBm  m

(795) m  m

(796) mm

(797)  

(798) m ' m

(799)  m 

(800)  m  mm

(801)

(802)   mmm m mm mmm m  mm

(803)

(804)   mm  m mmm mBm  m

(805) m m$ mmm m

(806) m m  mm  6m7m@m!  m 

(807)  mm  m >m m.  m

(808) mPmG

(809) m

(810) mm

(811) Gmmmmmmmmmmmmmmmmmmmm

(812)   6

(813) 7m m 9 m

(814) m

(815) m m$ mmm m&m

(816) m

(817)

(818)   mm

(819)  m2

(820) m

(821) mm

(822) 4m

(823) m

(824)  m

(825) m 

(826)   mmm  6m7m

(827)  m mm

(828) m |  ¬m’ype Castingmm

(829) mm   m m mm mdatatypem m m

(830) m

(831) m  mmmm  

(832)  m m   m m   m&mm m

(833) mm m m mmm  m    m

(834) m mm  m m@m

(835)  mm    m m m mmm mm  mmm  mmmm

(836)   m m m

(837) mmm

(838)  m

(839) mmm m

(840) m 

(841)  m  m>m. Chapter ± 3 [A’A - ’YPE CONVERSION / ’YPE CAS’ING & m

(842) m! mm m

(843) mmmm  mm mmm

(844)  mm 

(845)  m& mm m  mmm.  m  

(846) 

(847) mmmm m

(848) m  mm m

(849) mm m mm m m

(850) m m mm m mm mm m

(851) mm  m m m m

(852) m   m m  m.   mmm ,   m m0m m

(853) m  m m m

(854) m  m m

(855) mm  m m mm

(856)  m

(857) m m

(858) m mm mm m m Code of the program :m | Ú   |    

(859)   . 

(860)   

(861)  

(862)   . m.

(863) m Ú        

(864)   

(865) ! ! 

(866) "   # $  !% #   &  '! 

(867) "   # $  ! !(  

(868) "   # $  !!( 

(869) "   # $  !!( 

(870) "   # $  !Ú!(Ú 

(871) "   # $  !!( 

(872) "   # $  !!( 

(873) "   # $  !!( 

(874) "   # $  !!( 

(875) "   # $  !!( 

(876) "   # $   ))      "   

(877)  *+ 

(878) "   # $  !% #   Ú  +!( ))      &      *+ 

(879) "   # $  !% #   Ú  +!( ))           *+ 

(880) "   # $  !% #   Ú  +!( ))      Ú&  Ú  *+ 

(881) "   # $  !% # Ú  Ú  +!(Ú Ú  *+ 

(882) "   # $  !% # Ú  Ú  #Ú +!(Ú ))           *+ 

(883) "   # $  !% #   Ú  +!( ))           *+ 

(884) "   # $  !% #   Ú  +!( ))       #  

(885)  *+ 

(886) "   # $  !% #   Ú  +!( ))      

(887)  

(888)  #,  

(889) "   # $  !% #   Ú  +!( 

(890)  *!!+!! 

(891) "   # $  !% #   Ú  +!(  #    (((( 

(892) "   # $  !% # #   Ú  +!(#  - -m. m.

(893) m. Chapter ± 4m  ^/^# Simple Assignment Operator .

(894)  $    $ . Arithmetic Operators ( / 0 ) 3. .  $   # 

(895) Ú Ú   

(896) #  Ú   $  1# $Ú   $  2  $  4  $ . Unary Operators ( / (( // :. 5 "$# $ Ú $   # #   $  6 & #  &7& 6 5 " # $   8$  9Ú   $ Ú    #" 2Ú   $ Ú    #" ; Ú Ú $   $   & #    . Equality and Relational Operators  : ? ? A A. <=#   > =#   @  &  @  &  =#   ; &  ; &  =#  . Conditional Operators BB     /.>2 CC     /,4 *+D " &  &  / &/   . ’ype Comparison Operator  Ú .  $   EÚ   $Ú "$. Bitwise and Bit Shift Operators F AA ??. m. 5 " 6Ú $  

(897)  & 

(898) & & .

(899) m ??? B H C . 5& &  G 6.>2 G 68Ú#,4 G 6Ú#,4. ’he Bitwise Logical Operators. m

(900) m   m

(901) mm& m| m^ m m~mm  m m

(902) 

(903) mm mm  m m& mm 

(904) 

(905)

(906)  mm 

(907) mm m mmm

(908) m

(909) mm   mm m   mm m m m m mm m m mm mm m m. 0mm. mSm0mm. m. mEm0m. mm. mTm0m. m. Um. mm m mm mm. mmmm mm m mm mm mm mm. m m m m. mmmm mmm mmm mm mm. m m m m. mmmm mm m mm mm mmmm. m m m m. mm m mmm mm m mmm. ’he Bitwise NO’. 

(910) m   mm 

(911) |

(912) m m-/m m~ m 

(913) m mmm

(914) mm

(915) m  m@m!  mm mQ" m m

(916) mm  mm >m m    m m  

(917) m m    m m mm-/mm

(918) m  m. ’he Bitwise AN[ m-?m m& m  

(919) mm mmmm

(920) mm

(921) m mmIm

(922) m   m m m m 

(923) 

(924) m9m

(925) m m! >m m mmmmm   mmmmmmmmmmmmmmQ"m Emm mmmmmmmmmmmmmm 1m m   m m mmmmmmmm m. ’he Bitwise OR. m m/3m m| m  

(926) m

(927) m

(928)  mmmmmm

(929) m mm

(930) m

(931) mm m m m

(932)   mm

(933) mm m

(934) m

(935)  m>m m mmm   mm Q"m Smm mm 1m m mmm  mm QRm m. ’he Bitwise XOR m:/3m mT m  

(936) m

(937) m

(938)  mmm!  m m m

(939) m m mm

(940)  m

(941) m m. m.

(942) m /

(943)  mm

(944)  m

(945) mImm  m! m

(946) 

(947) mm mmmTm

(948) m! m 

(949) m 

(950) 

(951) mm

(952)  mmmm:/3m m- mmmm mmQ"m 

(953) m  mmm

(954)   m m

(955) mm mmmm

(956)   m m

(957) mmm m m

(958) m m

(959) m   mBm m m

(960) mm

(961)  m m m

(962) m 

(963) mmm  

(964) m mmmm m mmm   mm Q"m Tm mm 1m m mmm   mm ;Rm. ’he Left Shift m m

(965) m m<< m

(966) 

(967) m mmm

(968) m mm mmm mm

(969)   m mm

(970) m &m

(971) m

(972) m  m>m m ë 

(973)  . mmPmCQ mm  mm mPmmVVm"m m /,,mm m mP"1Cm ’he Right Shift mm

(974) m m>> m

(975) 

(976) m mmm

(977) m mm mmmmm

(978)   m mm 

(979) m&

(980) m  mm

(981) m

(982)  m>m m ë 

(983)  .  mmPm;"m mPmmLLm"mWWmm m  

Figure

Updating...

References

Updating...

Related subjects :