? ??????????????Take My Breath Away? ????? ?? ???Rating: 4.4 (13 Ratings)??71 Grabs Today. 12572 Total Gra
bs. ??????Preview?? | ??Get the Code?? ?? ?????Our Hearts on Thin Ice? ????? ?? ???Rating: 5.0 (1 Rating)??52 Grabs Today. 4978 Total Grabs. ??????Preview?? | ??Get the Code?? ?? ??? BLOGGER TEMPLATES AND TWITTER BACKGROUNDS ?

Wednesday, April 14, 2010

topics discussed in java1

1.topics discussed in java 1 .provide brief description per topic

-CONTROL STRUCTURES
--1.Decision control structures
-allows us to select specific section of code
--2.Repition control structures
-allow us to execute specific sections of the code a number of times
DECISION CONTROL STRUCTURES
Types:
if - boolean expression or variable
-will be executed if and only if a certain boolean statement is true
example:
- if (boolean_expression)-syntax
statement;
or
-if (boolean_expression){
statement1;
statement2;
}

if-else - used when we want to execute a certain statement if a condition is true, and a different statement if the condition is false.
example:
-if(boolean_expression){
statement1;
statement2;
}
else{
statement3;
statement4;
}

if-else-if - in the else clause of an if- else block can be another if-else structure
- this cascading of structure allows us to make more complex structures
example:
-if(boolean_expression1)
statement1;
else if(boolean_expression2)
statement2;
else
statement3;

ARRAYS- stores multiple data item of the same data type
--index/subscripts-used in access array elements
--begin with zero and progress sequentially by whole numbers to the end of array.
--declaration- int number [];
--instantiate- number = new int [3];
or - int number [] = new int [3];
Two Dimensional Array
int [][]number new int [2][5];
[2] - number of rows
[5] - number of columns
number.length = # of rows
number[0]length = # of columns
METHODS
1.concat()
2.length()
3.IndexOf()
4.LastIndexOf()
5.CharAt()
6.equals()
7.equalsIgnoreCase()
8.StartsWith()
9.endswith()
10.toUpperCase()
11.toLowerCase()
12.replace()
13.Substring()
2.Introduction to java programming
a.HISTORY
-Object Oriented Programming that is receiving wide attention from both industry and academe
-based on c and c++
-originally intended for writting programs
-james gosling at sun microsystem in california in year 1991
-original name of java is "OAK" the name oak come from a tree
b.JAVA TECHNOLOGY
-a.programming language
--can create all kinds of application,create using any conventional programming language
-b.development environment
--provides you w/ a large suite of tools
--computer,interpreter,document generator,class file packaging tool
--2 main development environment
--sdk(software development kit)-basic language,gui componet classes
--web browser-most commercial browser
-c.application environment
--general purpose programs that run at any machine program
-d.deployment environment
c.JAVA FEATURES
-a.java virtual machine
--imaginary machine that is implemented by emulating software on a real machine
-b.garbage collection
--responsible for freeing any memory that can be freed
-c.code security --special machine language that can be understood by the java virtual machine

d.PHASES OF JAVA PROGRAMS
-a.write - making a program or codes
-b.compile - compiling the program using compiler
-c.run - runs the program or debugging the program

e.difference bet. java application and java applets
JAVA APPLICATION - stand alone program that does not require a web browser
JAVA APPLETS- run w/ in a web browser and it is not stand alone
f.what makes java as a oop?
--it received wide attention from both industry and academe

0 comments: