Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
20Activity
0 of .
Results for:
No results containing your search query
P. 1
Aprenda Java

Aprenda Java

Ratings: (0)|Views: 118 |Likes:
Published by Miguel_Maximil_6737

More info:

Published by: Miguel_Maximil_6737 on Mar 07, 2010
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

09/17/2010

pdf

text

original

 
   A  p  r  e  n   d  a   I  n   f  o  r  m   á   t   i  c  a . . .
Escuela Superior de Ingenieros IndustrialesIndustri Injineruen Goimailako Eskola
UNIVERSIDAD DE NAVARRA - NAFARROAKO UNIBERTSITATEA
   S  a  n   S  e   b  a  s   t   i   á  n ,   M  a  r  z  o   1   9   9   9
 Aprenda Java
como si estuviera en primero 
Javier García de Jalón
José Ignacio RodríguezIñigo Mingo
 Aitor Imaz Alfonso Brazález
 Alberto Larzabal
Jesús Calleja
Jon García
 
 Aprenda Java
como si estuviera en primero 
Javier García de JalónJosé Ignacio RodríguezIñigo Mingo Aitor Imaz Alfonso Brazález Alberto LarzabalJes CallejaJon Gara
Perteneciente a la colección :
“Aprenda …, como si estuviera en primero” 
 
 Índice página i
ÍNDICE
1.
INTRODUCCIÓN A JAVA.....................................................................................................................................1
1.1Q
UÉ ES
J
AVA
2.................................................................................................................................................21.2E
L ENTORNO DE DESARROLLO DE
J
AVA
............................................................................................................2
1.2.1 El compilador de Java.........................................................................................................................31.2.2 La Java Virtual Machine......................................................................................................................31.2.3 Las variables PATH y CLASSPATH....................................................................................................3
1.3U
N
E
JEMPLO
C
OMPLETO
C
OMENTADO
............................................................................................................4
1.3.1 Clase Ejemplo1....................................................................................................................................41.3.2 Clase Geometria ..................................................................................................................................81.3.3 Clase Rectangulo.................................................................................................................................91.3.4 Clase Circulo .....................................................................................................................................111.3.5 Interface Dibujable............................................................................................................................121.3.6 Clase RectanguloGrafico...................................................................................................................131.3.7 Clase CirculoGrafico.........................................................................................................................141.3.8 Clase PanelDibujo.............................................................................................................................151.3.9 Clase VentanaCerrable......................................................................................................................17 1.3.10 Consideraciones adicionales sobre el Ejemplo1................................................................................18
1.4N
OMENCLATURA HABITUAL EN LA PROGRAMACIÓN EN
J
AVA
........................................................................191.5E
STRUCTURA
G
ENERAL DE UN
P
ROGRAMA
J
AVA
...........................................................................................19
1.5.1 Concepto de Clase .............................................................................................................................201.5.2 Herencia.............................................................................................................................................201.5.3 Concepto de Interface........................................................................................................................201.5.4 Concepto de Package.........................................................................................................................201.5.5
La jerarquía de clases de Java (API).................................................................................................20
2.
PROGRAMACIÓN EN JAVA..............................................................................................................................22
2.1V
ARIABLES
.....................................................................................................................................................22
2.1.1 Nombres de Variables........................................................................................................................222.1.2 Tipos Primitivos de Variables............................................................................................................222.1.3
Cómo se definen e inicializan las variables.......................................................................................232.1.4 Visibilidad y vida de las variables.....................................................................................................242.1.5 Casos especiales: Clases BigInteger y BigDecimal...........................................................................25
2.2O
PERADORES DE
J
AVA
...................................................................................................................................25
2.2.1 Operadores aritméticos......................................................................................................................252.2.2 Operadores de asignación.................................................................................................................252.2.3 Operadores unarios ...........................................................................................................................26 2.2.4 Operador instanceof ..........................................................................................................................26 2.2.5 Operador condicional ?:....................................................................................................................26 2.2.6 Operadores incrementales.................................................................................................................26 2.2.7 Operadores relacionales....................................................................................................................26 2.2.8 Operadores lógicos............................................................................................................................27 2.2.9 Operador de concatenación de cadenas de caracteres (+)...............................................................27 2.2.10 Operadores que actúan a nivel de bits...............................................................................................27 2.2.11 Precedencia de operadores................................................................................................................28
2.3E
STRUCTURAS DE PROGRAMACIÓN
................................................................................................................28
2.3.1 Sentencias o expresiones....................................................................................................................292.3.2 Comentarios.......................................................................................................................................292.3.3 Bifurcaciones .....................................................................................................................................29
2.3.3.1
Bifurcación if...................................................................................................................................302.3.3.2Bifurcación if else............................................................................................................................302.3.3.3Bifurcación if elseif else...................................................................................................................302.3.3.4Sentencia switch...............................................................................................................................30
2.3.4 Bucles.................................................................................................................................................31
2.3.4.1Bucle while......................................................................................................................................312.3.4.2Bucle for..........................................................................................................................................312.3.4.3Bucle do while.................................................................................................................................322.3.4.4Sentencias break y continue.............................................................................................................322.3.4.5Sentencias break y continue con etiquetas.......................................................................................32

Activity (20)

You've already reviewed this. Edit your review.
1 hundred reads
Javier Rojas liked this
Alx89 liked this
Juan Vidal liked this
Juan Vidal liked this
Juan Vidal liked this
Juan Vidal liked this
FelinoKa liked this
fenix1005 liked this

You're Reading a Free Preview

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