JavaDumping/java.org

1.2 KiB
Raw Permalink Blame History

Java

TODO Java [4/4]

[X] streams

[X] Enums

[X] Autoboxing - Chapter 12

CLOCK: [2022-06-20 h 22:50][2022-06-20 h 23:15] => 0:25 Clock: [2022-06-20 h 20:59][2022-06-20 h 21:24] => 0:25 CLOCK: [2022-06-20 h 20:29][2022-06-20 h 20:54] => 0:25

[X] generics - chapter 13

general

Overload: Different Parameters

overrid: Same Parameters

inheritance

packages

IO

Byte Streams

in the top of the byte sream: InputStream and OutputStream they can .

System.in is an object of type InputStream.

System.out and System.err are objs of PrintStream.

Characher Streams

Chars

BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // System.in is an InputStream not a Reader so, InputStreamReader helps to convert it.
PrintWriter

Files

FileWriter
FilerReader

FILES

FileInputStream

FileOutputStream

Features

Enums

AutoBoxing and auto-unboxing

Annotations

Generics

works only with Reference types aka clases.

Types differ based on theri type arguments

generic methods use the generic type as their paramters // it can be defined in a non-generic class.