Java Librerias Flashcards

1
Q

Convertir entero o float n a string x

A

String x = String.valueOf(n);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Convertir string x a entero n

A

int n = Integer.parseInt(“x”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Importar clase para socket orientado a conexion, de cliente

A

import java.net.Socket;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Importar clase para socket orientado a conexion, de servidor

A

import java.net.ServerSocket;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Importar clase para socket no orientado a conexion

A

import java.net.DatagramSocket;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Importar Clases de flujos de caracteres (16 bits) y enumerar metodos destacados

A

import java.io.Reader;
import java.io.Writer;

read(), write()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Importar Clases de flujos de bytes (8 bits) y enumerar metodos destacados

A

import java.io.InputStream;
import java.io.OutputStream;

read(), write()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Obtener una entrada estandar x

A

char x = (char)System.in.read();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Importar Clases para ficheros de texto

A

import java.io.FileReader;

import java.io.FileWriter;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Importar Clases para ficheros binarios

A

import java.io.FileInputStream;

import java.io.FileOutputStream;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Importar Clase para ficheros acceso aleatorio

A

import java.io.RandomAccessFile;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Importar Clase para representacion abstracta de ficheros y directorios

A

import java.io.File;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Importar Clase para almacenar objetos en ficheros

A

import java.io.Serializable;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Importar Clase para leer y escribir objetos de ficheros

A

import java.io.ObjectInputStream;

import java.io.ObjectOutputStream;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Importar Clases para programacion de eventos

A

import java.awt.event.*;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

¿Que es un thread?

A

Flujo secuencial de control dentro de un programa