...
83
0.0 (0)
Kartei Details
Karten | 83 |
---|---|
Sprache | English |
Kategorie | Informatik |
Stufe | Andere |
Erstellt / Aktualisiert | 02.05.2019 / 03.05.2019 |
Weblink |
https://card2brain.ch/box/20190502_ocp_before_exam
|
Einbinden |
<iframe src="https://card2brain.ch/box/20190502_ocp_before_exam/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
is it safe to use inputsream.available() to check if a stream is EOF?
NO! Use the specific strategies for each kind of stream
How is a serialized object created?
- Java calls the first non-arg constructor for the first nonserializable parent class, skipping the constructors of all serialized classes in between!
- Static variables are ignored
- default intializers (eg private String myField = "123" and {}) are ignored
What is special about the print, println, printf and format methods found on the PrintStream/PrintWriter classes?
They do not throw an exception! The checkError() method can be used for that instead