Logo
TGCATALOG
Catalog Collections Blog
Java | Interview questions

Java | Interview questions

Questions and answers for Java developer interviews.

No ratings
324
01.12.2026
324
01.12.2026
No ratings
324
01.12.2026
Safe redirect via bot
О канале

Questions and answers for Java developer interviews.

Подписчиков —
Тематика Technology
Ссылка @easy_java_ru

We also recommend

Kekaton AI | Voiceover and voice clone
Kekaton AI | Voiceover and voice clone
Bot

AI bot for text-to-speech and voice cloning in Telegram. Create audio using neural network quickly and easily.

Description

Selection of typical questions in Java interviews: from JVM basics to Spring and Hibernate. Each question with detailed explanation, code examples, and tips. Suitable for all levels.

Latest posts

Java | Interview questions
Java | Interview questions
🔒Открыть пост
и посмотреть медиа
🤔 Какие классы поддерживают чтение и запись потоков в компрессированном формате? Java предоставляет встроенные классы для чтения и записи сжатых данных в формате ZIP, GZIP и других. Эти классы находятся в пакете java.util.zip. 🚩GZIP (формат `.gz`) GZIPOutputStream – сжимает данные в формат .gz. GZIPInputStream – разжимает данные из .gz. import java.io.*; import java.util.zip.*; public class GZipExample { public static void main(String[] args) throws IOException { String data = "Привет, мир! Это тестовая строка для GZIP."; // Сжатие в .gz try (FileOutputStream fos = new FileOutputStream("data.gz"); GZIPOutputStream gzos = new GZIPOutputStream(fos)) { gzos.write(data.getBytes()); } // Разжатие .gz try (FileInputStream fis = new FileInputStream("data.gz"); GZIPInputStream gzis = new GZIPInputStream(fis); BufferedReader reader = new BufferedReader(new InputStreamReader(gzis))) { System.out.println("Разжатый текст: " + reader.readLine()); } } } 🚩ZIP (формат `.zip`) ZipOutputStream – создаёт ZIP-архив. ZipInputStream – извлекает файлы из ZIP. import java.io.*; import java.util.zip.*; public class ZipExample { public static void main(String[] args) throws IOException { String fileName = "example.txt"; String zipFile = "archive.zip"; // Создаём файл для сжатия try (FileWriter writer = new FileWriter(fileName)) { writer.write("Привет, это файл для архивации!"); } // Запись в ZIP try (FileOutputStream fos = new FileOutputStream(zipFile); ZipOutputStream zos = new ZipOutputStream(fos); FileInputStream fis = new FileInputStream(fileName)) { ZipEntry entry = new ZipEntry(fileName); zos.putNextEntry(entry); byte[] buffer = new byte[1024]; int length; while ((length = fis.read(buffer)) > 0) { zos.write(buffer, 0, length); } } System.out.println("Файл заархивирован в " + zipFile); } } 🚩Deflater/Inflater (общая компрессия без формата) DeflaterOutputStream – сжимает данные без специфического формата. InflaterInputStream – разжимает такие данные. import java.io.*; import java.util.zip.*; public class DeflaterExample { public static void main(String[] args) throws IOException { String text = "Данные для сжатия"; // Сжатие ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); try (DeflaterOutputStream dos = new DeflaterOutputStream(byteStream)) { dos.write(text.getBytes()); } byte[] compressedData = byteStream.toByteArray(); // Разжатие ByteArrayInputStream inputStream = new ByteArrayInputStream(compressedData); try (InflaterInputStream iis = new InflaterInputStream(inputStream); ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) { byte[] buffer = new byte[1024]; int length; while ((length = iis.read(buffer)) > 0) { outputStream.write(buffer, 0, length); } System.out.println("Разжатые данные: " + new String(outputStream.toByteArray())); } } } Ставь 👍 и забирай 📚 Базу знаний
Java | Interview questions
FAQ

Open Java | Interview questions in Telegram and press the Start button. No separate registration is required.

Yes. The service is designed to be straightforward: open the resource, follow the on-screen instructions and start using it.

No. You can use Java | Interview questions directly in Telegram unless the resource description says otherwise.

Access depends on the resource. Check the current information in Telegram after opening Java | Interview questions.

The exact features depend on the resource. Open Java | Interview questions to see its current functions, content and access conditions.

Reviews for channel Java | Interview questions

Log in to leave a review

Only registered users can share their opinion.

No reviews yet

Be the first to share your impression of this resource!

Similar resources

Loading
Switch to Light Theme
Home Catalog Collections Blog Login