Está en la página 1de 17

JAVA DESDE CERO

Autor: Ing. Javier Mariscal Qquellón


jmariscal@seencorp.pe
Www.seencorp.pe
https://www.linkedin.com/in/javier-mariscal-97a85094
Whastapp: 997596006

INICIO SÁBADO 25 DE JUNIO


JAVA

El lenguaje de programación Java es un lenguaje de alto nivel que puede caracterizarse por:


Sencillo

Orientado a objetos

Distribuido

Multiprocesos

Dinámico

Arquitectura Neutral

Portable

Alto rendimiento

Robusto

Seguro

©Derechos Reservados
3 Curso Java desde Cero
SEENCORP 2020
Visión general del proceso de desarrollo de
software.

©Derechos Reservados
4 Curso Java desde Cero
SEENCORP 2020
©Derechos Reservados
5 Curso Java desde Cero
SEENCORP 2020
La API y la máquina virtual Java aíslan el
programa del hardware subyacente.

La plataforma java tiene 2 componentes:



The Java Virtual Machine

The Java Application Programming Interface (API)

©Derechos Reservados
6 Curso Java desde Cero
SEENCORP 2020
¿Qué puedes hacer con la tecnología JAVA?

Java le ofrece las siguientes características:



Herramientas de desarrollo.

Interfaz de programación de aplicaciones (API).

Tecnologías de implementación (Java web start, Java Plug in).

Herramientas de interfaz de usuario(JavaFx, Swing, JAVA 2D)

Bibliotecas de integración. API IDL, API JDBC, JNDI, JAVA RMI,

©Derechos Reservados
7 Curso Java desde Cero
SEENCORP 2020
Instalación de herramientas

Requisitos

Instalación de JDK 8

Instalación de Netbeans 8.2

©Derechos Reservados
8 Curso Java desde Cero
SEENCORP 2020
¿Hola Mundo?

©Derechos Reservados
9 Curso Java desde Cero
SEENCORP 2020
Aprendiendo lenguaje JAVA


Concepto de Programación Orientado a Objetos.

Conceptos básicos.

Clases y Objetos.

Anotaciones.

Interfaces y Herencia.

Números y Cadena de Caracteres.

Genéricos.

Paquetes.

©Derechos Reservados
10 Curso Java desde Cero
SEENCORP 2020
Object-Oriented Programming Concepts

What Is an Object? Software objects are often used to model the real-world
objects

What Is a Class?A class is a blueprint or prototype from which objects are


created.

What Is Inheritance?Inheritance provides a powerful and natural mechanism


for organizing and structuring your software

What Is an Interface?When a class implements an interface, it promises to


provide the behavior published by that interface

What Is a Package?A package is a namespace for organizing classes and


interfaces in a logical manner

©Derechos Reservados
11 Curso Java desde Cero
SEENCORP 2020
What Is an Object?

A software object. A bicycle modeled as a software object.

La agrupación de código en objetos de software individuales proporciona una serie de beneficios, que incluyen:

Modularity

Information-hiding

Code re-use

Pluggability and debugging ease

©Derechos Reservados
12 Curso Java desde Cero
SEENCORP 2020
What Is a Class?

class Bicycle { In object-oriented terms, we say that


int cadence = 0; your bicycle is an instance of the class of
objects known as bicycles
int speed = 0;
int gear = 1;

void changeCadence(int newValue) {


cadence = newValue;
class BicycleDemo {
}
public static void main(String[] args) {

void changeGear(int newValue) { // Create two different


gear = newValue; // Bicycle objects
} Bicycle bike1 = new Bicycle();
Bicycle bike2 = new Bicycle();
void speedUp(int increment) {
speed = speed + increment; // Invoke methods on

} // those objects
bike1.changeCadence(50);
bike1.speedUp(10);
void applyBrakes(int decrement) {
bike1.changeGear(2);
speed = speed - decrement;
bike1.printStates();
}

bike2.changeCadence(50);
void printStates() { bike2.speedUp(10);
System.out.println("cadence:" + bike2.changeGear(2);
cadence + " speed:" + bike2.changeCadence(40);
speed + " gear:" + gear); bike2.speedUp(10);
} bike2.changeGear(3);
bike2.printStates();
}
}
}

©Derechos Reservados
13 Curso Java desde Cero
SEENCORP 2020
What Is Inheritance?

The syntax for creating a subclass is simple. At


the beginning of your class declaration, use the
extends keyword, followed by the name of the
class to inherit from:

class MountainBike extends Bicycle {

// new fields and methods defining


// a mountain bike would go here

©Derechos Reservados
14 Curso Java desde Cero
SEENCORP 2020
What Is an Interface?

class ACMEBicycle implements Bicycle {

En su forma más común, una int cadence = 0;


int speed = 0;

interfaz es un grupo de métodos int gear = 1;

// The compiler will now require that methods

relacionados con cuerpos vacíos. // changeCadence, changeGear, speedUp, and applyBrakes


// all be implemented. Compilation will fail if those
// methods are missing from this class.

void changeCadence(int newValue) {


cadence = newValue;
}

void changeGear(int newValue) {

interface Bicycle { gear = newValue;


}

// wheel revolutions per minute void speedUp(int increment) {


speed = speed + increment;
void changeCadence(int newValue);
}

void changeGear(int newValue); void applyBrakes(int decrement) {


speed = speed - decrement;
}
void speedUp(int increment);
void printStates() {
System.out.println("cadence:" +
void applyBrakes(int decrement); cadence + " speed:" +
speed + " gear:" + gear);
}
}
}

©Derechos Reservados
15 Curso Java desde Cero
SEENCORP 2020
What Is a Package?

Un paquete es un espacio de nombres que organiza un conjunto


de clases e interfaces relacionadas

©Derechos Reservados
16 Curso Java desde Cero
SEENCORP 2020
¿Seguro de lo aprendido?


Real-world objects contain ___ and ___.

A software object's state is stored in ___.

A software object's behavior is exposed through ___.

Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data
___.

A blueprint for a software object is called a ___.

Common behavior can be defined in a ___ and inherited into a ___ using the ___ keyword.

A collection of methods with no implementation is called an ___.

A namespace that organizes classes and interfaces by functionality is called a ___.

The term API stands for ___?

©Derechos Reservados
17 Curso Java desde Cero
SEENCORP 2020

También podría gustarte