ఒక సులువైన program
class p15
{int a=15;
public void display()
{System.out.println("my name is varun and my age is"+a);
}}
variables:-ఫై దానిలో "a" అనే దానిని variable అనే అంటాం .
eg: int a;
int b;
double f;
ఫై వాటిలో b,f అనేవి variables. variables అనేవి ఇచ్చిన వాక్యాలను ,లేదా data ను computer memory కి సేవ్ చేస్తాయి .
p15- class name
public -access specifier unda
void- return type
display()-function(ఫంక్షన్ ).
Data Types:-
Data types అనేవి variables తో పాటు కలిపి declare చేయాలి ఇవీ variable లో ఎలాంటి data store చేయాలో చెబుతుంది .
eg: int a=0;
int b=1;
double c=2;
Data Type లు 8 రకాలు .
------------------------------------------------------------------------------------------------------------------------------
-Integer data Types memory size they occupy(bits)
long - 64
int - 32
short - 16
byte - 8
Integer data Type:-ఈలాంటి data type లో whole number లు మాత్రమే store చేయవచ్చు.
--------------------------------------------------------------------------------------------------------------------------------
-Floating -point data types memory they occupy(bits)
Float - 4
Double - 8
Floating point data type: ఈలాంటి data type ల లో real numbers మాత్రమే store చేయవచ్చు .
-----------------------------------------------------------------------------------------------------------------------------------
-Character-data type memory they occupy
char - 16 bit
character data type: ఈ data type లు అక్షరాలను మాత్రమే store చేసుకుంటై .
-----------------------------------------------------------------------------------------------------------------------------------
--boolean-data type memory size
boolean - 16bit
ఈ data type లో true లేదా false store చేసుకుంటై .ఇది conditional data type.
eg: True/false , yes/No
----------------------------------------------*******-------------------------------------------------------
-
Iam writing this blog in telugu because most of the people does not seem to understand java in english and even if they understand they does not show much interest . so just for a change....
Thursday, October 14, 2010
Saturday, October 9, 2010
chap:1 Introduction
ఎన్నో ఇంట్లో పరికరాలు లో మనం జావా నే ఉపయోగిస్తాం ."Object Oriented Programmming" అనేదే జావా లో ఎంతో ముక్యమైన గట్టం .సాధారణమైన బాష లో program అంటే ఒక పనిని చేయుటకు మనం ఇచ్చే నియమములు .చాల మందీ "programming" అనే పదం విన గానే ఏదో చాల కష్టమైన పని అనే అనుకుంటారు కాని దానిని సరైన విధానం లో అర్ధం చేసుకుంటే దానంత సులువైన పని మరొకటి లేదు .
Qualifications for programming: ఉత్సహుం , నేర్చుకోవాలనే కుతూహల ఈవి చాలు .
Objects:
మొట్ట మొదటగా , "object" అంటే ఏంటో తెలుసుకుందాం
"Object is a bundle of variables and methods"
మనం ఓబ్జేచ్ట్ అంటే మన చుట్టూ ఉండే వస్తువులను objects అనే అంటాం .ప్రతి object కు ఒక state మరియు behaviour అనే రెండు లక్షణాలు ఉంటై.
eg: your classmate state (అంటే వాడి height,weight,name)
your class mate behaviour(అంటే వాడు చేసే పనులు studying,running,etc)
Messages:
రెండు objects సమాచారాలు ద్వారా communicate చేసుకుంటై.
eg: నీవు మరియు నీ గర్ల్ ఫ్రెండ్ ఇదరు ఒక రెండు objects లు గా అనుకుందాం .
మీ ఇదరు ఫోన్ లో మెసేజెస్ ద్వరా ఎలా మాట్లాడుకుంటారో అదే విధం గా రెండు objects కూడా
చేస్తాయి.
Abstraction :
"Abstraction is hiding the complexity of the system and representing essential features of the system".
eg: సుప్పొసె ,
ఒక music player లో బటన్ ఒత్తగానే పాత వినిపిస్తుంది. కాని ఆ music player player లోన ఏమవుతుందో మనకు తెలియదు. దీన్నే abstraction అనే అంటారు . ఒక పరికరం లోనే కష్టమైన విషయాలను దాచీ పెట్టి ,దానిలో ని ముక్యామైన విషయాలను తెలియజేయుట . ఈ property ప్రతి యొక్క పరికరానికి ఉంటుంది. దీనే మనం abstraction అనే అంటాం.
Class:
ఇది జావాలో ముక్యమైన పదం . ఈ పదాన్ని తప్పనిసరిగా ప్రతి program లో ఉపయోగిస్తాం. ఒక class లోనే
మనము object లు create చేయాలి .
Qualifications for programming: ఉత్సహుం , నేర్చుకోవాలనే కుతూహల ఈవి చాలు .
Objects:
మొట్ట మొదటగా , "object" అంటే ఏంటో తెలుసుకుందాం
"Object is a bundle of variables and methods"
మనం ఓబ్జేచ్ట్ అంటే మన చుట్టూ ఉండే వస్తువులను objects అనే అంటాం .ప్రతి object కు ఒక state మరియు behaviour అనే రెండు లక్షణాలు ఉంటై.
eg: your classmate state (అంటే వాడి height,weight,name)
your class mate behaviour(అంటే వాడు చేసే పనులు studying,running,etc)
Messages:
రెండు objects సమాచారాలు ద్వారా communicate చేసుకుంటై.
eg: నీవు మరియు నీ గర్ల్ ఫ్రెండ్ ఇదరు ఒక రెండు objects లు గా అనుకుందాం .
మీ ఇదరు ఫోన్ లో మెసేజెస్ ద్వరా ఎలా మాట్లాడుకుంటారో అదే విధం గా రెండు objects కూడా
చేస్తాయి.
Abstraction :
"Abstraction is hiding the complexity of the system and representing essential features of the system".
eg: సుప్పొసె ,
ఒక music player లో బటన్ ఒత్తగానే పాత వినిపిస్తుంది. కాని ఆ music player player లోన ఏమవుతుందో మనకు తెలియదు. దీన్నే abstraction అనే అంటారు . ఒక పరికరం లోనే కష్టమైన విషయాలను దాచీ పెట్టి ,దానిలో ని ముక్యామైన విషయాలను తెలియజేయుట . ఈ property ప్రతి యొక్క పరికరానికి ఉంటుంది. దీనే మనం abstraction అనే అంటాం.
Class:
ఇది జావాలో ముక్యమైన పదం . ఈ పదాన్ని తప్పనిసరిగా ప్రతి program లో ఉపయోగిస్తాం. ఒక class లోనే
మనము object లు create చేయాలి .
Subscribe to:
Posts (Atom)