aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • core java programming
  • Which of the following is serializable?
Multiple choice

Which of the following is serializable?

  1. Interface

  2. Public interface

  3. Public class

  4. Private class

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Serializable is a public interface to allow subtypes of non-serializable classes to be serialized. This interface is included in java.io. Serializable package has access specifier as public.

Keep practicing — related questions

  • All the wrapper classes (Integer, Boolean, Float, Short, Long, Double and Character)
  • While serializing a class whose Base class is serializable, which of the following fields are ignored?
  • While serializing a class whose Base class is serializable, which of the following fields are ignored?
  • public class Foo implements java.io.Serializable { Line1. private int x; Line2. public int getX() { return ...
  • Which Java keyword should be used with a data member to make it non-serializable?
  • Given: 10. public class Foo implements java.io.Serializable { 11. private int x; 12. public int getX() { re...
  • All the wrapper classes (Integer, Boolean, Float, Short, Long, Double and Character) in java
  • Which of the following variable types is/are not serializable in Java?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy