Шукаєте відповіді та рішення тестів для Java Fundamentals? Перегляньте нашу велику колекцію перевірених відповідей для Java Fundamentals в softserve.academy.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Which of these is method of ObjectIntputStream class used to read the object from input stream as required?
Which of these class can read or write characters?
Which of these class is used to read bytes in a file?
Which of these classes is used for input operation when working with bytes?
Which of these method of FileReader class is used to read characters from a file?
Which of these is a method to clear all the data present in output buffers?
How an object can become serializable?
What is serialization?
Which of these is a process of writing the state of an object to a byte stream?
What is the output of this program? import java.io.*; public class App { public static void main(String[] args) { String obj = "abc"; byte b[] = obj.getBytes(); ByteArrayInputStream obj1 = new ByteArrayInputStream(b); for (int i = 0; i < 2; ++ i) { int c; while ((c = obj1.read()) != -1) { if (i == 0) { System.out.print((char)c); } } } } }