Looking for Objektorienteeritud programmeerimine (LTAT.03.003) test answers and solutions? Browse our comprehensive collection of verified answers for Objektorienteeritud programmeerimine (LTAT.03.003) at moodle.ut.ee.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Mis on baidivoo lõputunnuseks?
Konstruktsioon
BufferedReader sisse = new BufferedReader(new InputStreamReader(new URL(a).openStream())); on ebakorrektne.Kui faili temp.txt ei ole olemas, siis new File("temp.txt")
Mis ilmub ekraanile?
try (RandomAccessFile raf = new RandomAccessFile("raf.dat", "rw")) { raf.writeInt(10); raf.writeDouble(4.5); raf.writeInt(15); raf.writeInt(6); raf.seek(12); System.out.println(raf.readInt());}
Sisendbaidivoogu saab realiseerida järgmise klassi alamklassidega
Mitu baiti kirjutab järgmine programm faili?
try ( DataOutputStream dos = new DataOutputStream( new FileOutputStream("andmed.bin"))) { dos.writeInt(14); dos.writeInt(779); dos.writeInt(884075); dos.writeDouble(12.24);}
Klassi File objekt võib olla
Mida väljastab järgmine programmilõik?
DoubleProperty arv1 = new SimpleDoubleProperty(15.5);DoubleProperty arv2 = new SimpleDoubleProperty(5);NumberBinding vahe = arv1.subtract(arv2);arv2.set(12.6);arv1.bind(arv2);System.out.println(vahe.getValue());
Mida väljastab järgmine programmilõik?
DoubleProperty arv1 = new SimpleDoubleProperty(15.5);DoubleProperty arv2 = new SimpleDoubleProperty(5);NumberBinding vahe = arv1.subtract(arv2);arv1.set(12.6);System.out.println(vahe.getValue());
Mida väljastab järgmine programmilõik?
DoubleProperty arv1 = new SimpleDoubleProperty(15.5);DoubleProperty arv2 = new SimpleDoubleProperty(5);NumberBinding vahe = arv1.subtract(arv2);System.out.println(vahe.getValue());