aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Fundamentals
  • In which of the following cases can we serialize a function?
Multiple choice

In which of the following cases can we serialize a function?

  1. If the class does not implement serializable interface.

  2. If it has transient keyword before it.

  3. If it fails to create objects for 'ObjectOutputStream' and 'FileOutputStram'.

  4. If it is overridden.

  5. If it is static.

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

Correct answer.

Keep practicing — related questions

  • 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?
  • Which of the following variable types is/are not serializable in Java?
  • What is the output for the below code ? public class A {} public class B implements Serializable { A a = ne...
  • Which Java keyword should be used with a data member to make it non-serializable?
  • Which of the following statements is true about transient variable in java?
  • Given: 10. public class Foo implements java.io.Serializable { 11. private int x; 12. public int getX() { re...
  • Serializable interface has two methods which MUST be overridden when a class implemnts Serializable interface.
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