Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
26Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Java

Java

Ratings:

4.0

(1)
|Views: 17,960|Likes:
Published by Hemant Soni
SMS GROUP NOTES

hemant soni(7737397502)robin mathew(9891642759),rohit raj soni(8058868989)
SMS GROUP NOTES

hemant soni(7737397502)robin mathew(9891642759),rohit raj soni(8058868989)

More info:

Published by: Hemant Soni on Mar 11, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/18/2013

pdf

text

original

 
Java Programming- 1 - SMS (The best friends group)
UNIT-IJAVAHistory of Java1990:-
The Sun Micro System
usfu’p; fd;k fd ,d ,slh ubZ 
Language
cuk,saxsftllss?kjsyw 
ConsumerElectronic Device
mRiknksadk fuekZ.k vklkuh lsgksldsaA ;g dk;Z 
James Gosling
dh v/;{krk esafd;k x;k FkkA
1991:-
 
;g fuf’pr fd;k x;k fd ubZ 
Programming Language
dk fuekZ.k Hkh 
oop’s Concept
ij gh gksxkA rFkk bl ubZ 
Language
dk uke 
OAK
j[kk x;k FkkA
1992:-
 
bl 
Team
dks 
Green Team
ds uke ls tkuk tkusyxk tksfd 
Home Appliances
ds 
Hand MadeDevices
ds 
Controlling
dk dk;Zdjrh FkhA bls 
Touch Screen
ij Hkh dke esafy;k tkusyxkA
{Team Leader = Peterson}
1993:-
W.W.W. (World Wide Web)
vk;k ftldsvUrZxr 
Text Base Document
dks
Graphical Format
esa
Convert
fd;k x;k rHkh 
Green Team
dslnL;ksads}kjk ;g fuf’pr fd;k x;k fd ,d ubZHkk"kk dksdke esa ysdj 
Tiny Program
dk fuekZ.k fd;k tk,A tks 
Internet
ij ljyrk ls 
Execute
gksldsarFkk tkslHkh 
Computers
ij vklkuh ls py ldsA bUgha 
Tiny Programs
dks 
Applets
dgrsgSaA
1994:-
Green Team
dslnL;ksaus
“Hot Java”
uke dk 
Web Browser
cuk;k ftl 
 
usubZ 
Language
dh {kerk dksc<+k fn;kA
Hot Java
ds}kjk gh 
Applets
dks 
Locate
Execute
fd;k tkrk gSaA
1995:-
Legal Snags
dh otg ls 
OAK
uke cnydj 
“Java”
j[k fn;k FkkA
1996:-
Java
dks 
Internet Programming
dk 
Leader
gh ughacfYd 
oop’s Language
vkSj 
General PurposeLanguage
dsuke ls Hkh tkuk tkus yxkA
Platform Independency: -
Difference’s(1) C & Java: -
(a)
 
Java
ds}kjk mi;ksx esa fy;stkusokys 
Unique Statement
tSls%&
Sizeof, Goto, TypeDefinition
dksmi;ksx esaughaysrh gSaA
(b)Java, Pointer Type
dks 
Support
ughadjrh gSaA
(c )Java, oop’s Concept
ij dk;Zdjrh gSa] tcfd 
C, Procedural Language
gSaA
(d )Java
dk 
Development Sun Micro System
ds}kjk 
, C
dk 
Development Dennis Ritchie
ds}kjk fd;k x;k FkkA
(e)Java Pre Processors
dksdke esaughaysrh gSaA
C++ & Java
(a)
 
Java,
esa 
Operators Overloading
dksdke esaughaysrsgSaA
(b)
 
Java, Pointers
dk mi;ksx ughadjrh gSaA
(c)
 
Java
esa
Multiple Inheritances
dh txg 
Interface
dk mi;ksx gksrk gSaA
(d)
 
Java
esa 
Classes
dsckgj fdlh Hkh izdkj dk 
Function
;k 
Variable Declare
ughadj ldrsgSaA bls
Fullyoop’s
dg ldrsgSaA
(e)
 
Java
esa 
Header Files
dks 
Include
ughafd;k tkrk gSaA budh txg 
packages
dks 
use
esafy;k tkrk gSAblds fy;s 
Import keyword
dks 
use
esafy;k tkrk gSA
 (f)
 
Java
esa 
Destructor (~)
dh txg 
Finalize method
dk mi;ksx fy;k tkrk gSaA
Note: - Java
esa
Functions
dks
Method
dgrs gSaA
(g)
 
Java
esa 
Templates
dksdke esaughaysrs gSaA
Note: -
fcuk 
Object
dh 
Class
dks
Templates
dgrs gSaA
(h)
 
Java
esa 
Header Files
dsLFkku ij 
Packages
dks
Import
djrsgSaA
Source Code Source Code Source CodeSource Code Source Code
 
Java Programming- 2 - SMS (The best friends group)
Java Program Structure:-
(Keyword) class Hello(Class Name){public static void main (String arg [])Access specifier{System.out.println (“Hello Java”);class Object Method}}Dos ModeCompilation: - C:\jdk1.5\bin>javac Hello.javaExecution: - C:\jdk1.5\bin>java Hello
Data Type in JavaVariable Declaration
class My{int i;char c;byte b;public display ( ){}public static void main (String arg []){}}
Operators
(i)
 
Arithmetic Operator (+, -, /, *, mod, +=, -=, /= , *=)
 
C++JavaC
Integer
Character
FloatingPoint
Boolean
 
Byte
 
1 B
yte
 
Short2byte
 
int4 byte
 
Longint 8byte
 
Char String
 
2 byte
 
4 byte
 
Float
 
Double
 
4 byte
 
8 byte
 
True
 
False
 
 
Java Programming- 3 - SMS (The best friends group)(ii) Assignment Operator (=)(iii) Relational Operator (>, < , >= , <= , !=, !)(iv) Logical Operator (&&, || , !)(v) Boolean Operator (True/False)(vi) Increment & Decrement Operator (++, --)
Program Structure
<class keyword><class name>{var declaration ;constructor declaration;method declaration ;public static void main (String arg[]){<class object declarations>;
 
<calling constructor & methods>;}}-
 
By Default Class Public
gksrh gSaA
-
 
By Default Method Private
gksrsgSaA
Variables & Their’s ScopesVariable: -
Programs Execution
dsnkSjku ftudh 
Value Change
gksrh jgrh gSaA
Constant: -
Value Fixed
jgrh gSaA
Variables, Java Programs
esa 
Basic Storage
dsfy, dke esafy;stkrsgSaA
Variables, Identifiers, Type
rFkk 
Initializer
dk 
Combination
gksrk gSaA
Variable
dk 
Scope
mudh 
Visibility
rFkk 
Life Time
dksn’kkZrk gSaA
Variables Declaration: -
Java
esa 
Variable
dksmudsmi;ks
 
lsigys
Declare
fd;k tkrk gSaA
Syntax: - Type Identifier = Value;
;gkaij 
Type, Java
dh 
Data Type
esalsdksbZ,d 
Type
gksrh gSatksfd 
Class
dk uke ;k 
Interface
gksldrk gSaA
Identifiers, Variables
dk uke gksrk gSaA
Dynamic Initialization of Variables: -
Variables
ds 
Dynamic Initialization
esauhpsfy[ks 
Program
dsvarxZ
2 Variables
dks 
Double Value
ls 
Initialize
fd;k tkrk gSaA rFkk rhljk 
Variable
es mUgha 
Value
dksdke esaysrsgq , ge 
Variable
dk 
Dynamic Initialize
djrsgSA
Valid Expressions
dksdke esaysdj 
B VariableDeclaration Allow
djrh gSaA
class My{public static vaid main (String a []){double a = 3.0;double b = 4.0;double c;c = Math.sqrt (a*a+b*b);class methodSystem.out.println (“The Square root of a and b is:”+ c);}}
Scope& Life time Variables:-
 
dksbZHkh 
Variable Main Method
dsvanj gh 
Declare
fd;k tkrk gSaA ysfdu 
Java, Variables
dksfdlh Hkh 
Block 
esa 
Declare
djusdh vuq efr nsrh gSaA
Block, Middle Bracket ({})
ls'kq:

Activity (26)

You've already reviewed this. Edit your review.
Seema Kumari liked this
AbhilashaSaxena liked this
1 thousand reads
1 hundred reads
Ankit Jain liked this
Abinash Singh liked this
solocheruic liked this
Umesh Sehrawat added this note
how to download thin content????
Naveen Shakya liked this
Naveen Shakya liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->