samar
Java interfaces
1 Answer(s)      2 years and 7 months ago
Posted in : Java Interview Questions

What interface must an object implement before it can be written to a stream as an object?
View Answers

October 27, 2010 at 3:19 PM


Hi,

Here is the answer.

An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.

Thanks.









Related Pages:
Java interfaces
Java interfaces  What interface must an object implement before it can be written to a stream as an object
java interfaces
java interfaces  sample code for multiple interface   interface A { void test(int i); } interface B { void test(String s); } public class MultipleInterface implements A, B { public void test(int i
Marker interfaces in java
Marker interfaces in java  how marker interfaces work
EJB Interfaces
EJB Interfaces       Interface in java means a group of related methods with empty bodies. EJB have generally 4 interfaces. These are as follows 1)Remote interface:- Remote interface
Interfaces - Java Interview Questions
Interfaces  two interfaces having same method names and these two interfaces are implemented by a single class. so now i would like to generate different code of same methods of different interfaces. eg: ---- interface i1
java interfaces implementation
java interfaces implementation  hai I have defined one inter face like Maths taking methods like add(), sub(), mul()in interface I take different implementation classes for add() method and sub()and mul() when i trying
Interfaces - Java Interview Questions
Interfaces  two interfaces having same method names and these two interfaces are implemented by a single class. so now i would like to generate different code of same methods of different interfaces in single class? my query
how to create interfaces in java
how to create interfaces in java  HI, Here is my code public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code
interfaces - Java Beginners
, super class constructor runs.what about interfaces?  Hi Friend... is called the base class or the parent class. To derive a class in java the keyword... to : http://www.roseindia.net/java/language/inheritance.shtml Thanks
interfaces - Java Beginners
interfaces  examples on interfaces  Hi Friend, Please visit the following links: http://www.roseindia.net/java/master-java/interface.shtml http://www.roseindia.net/java/java-exception/create-interface.shtml
Summary: Classes, Interfaces
Java: Summary: Classes, Interfaces Packages package package-name; Class Definition A class definition prototype: visibility class class-name [extends parent-class] [implements interface-name...] { class-body } nameMeaning
interfaces
& interfaces.   An interface declaration introduces a new reference type whose members are classes, interfaces, constants and abstract methods... to directly implement one or more interfaces, meaning that any instance of the class
interfaces,exceptions,threads
interfaces,exceptions,threads  SIR,IAM JAVA BEGINER,I WANT KNOW THE COMPLETE CONEPTS OF INTERFACES,EXCEPTIONS,THREADS   Interface... class. In java, multiple inheritance is achieved by using the interface
Implementation code inside interfaces
Implementation code inside interfaces 2001-01-25 The Java Specialists' Newsletter [Issue 006] - Implementation code inside interfaces Author: Dr. Heinz... email or RSS. Welcome to the 6th issue of "The Java(tm) Specialists
EJB Interfaces
EJB Interfaces       Interface in java means a group of related methods with empty bodies. EJB have generally 4 interfaces. These are as follows 1)Remote interface:- Remote interface
Collection Interfaces
Collection Interfaces     ... of several interfaces, and classes that implement those interfaces, contained within... of objects.  Different interfaces describe different types of functionalities
Interfaces and Abstract Classes - Development process
Interfaces and Abstract Classes  What are the Scenarios where we use Interface and Abstract Classes?  Hi Friend, Interface: Java does... by using the interface. Interfaces are useful when you do not want classes
Java: Interfaces
Java: Interfaces An interface is a list of methods that must be defined... does, but abstract classes do allow static method definitions, and interfaces... different interfaces. If a class doesn't define all methods of the interfaces
What are the different types of interfaces in java? - Java Interview Questions
What are the different types of interfaces in java?  Hi, Is it correct question.I faced this in one interview. If yes can u tell me please. thanks chandu
Classes and Interfaces of the I/O Streams
Classes and Interfaces of the I/O Streams   ...;Writer It uses for writing to character stream. Interfaces: The following summary of Interfaces provided by the java.io package shown in the table
Getting list of Local Interfaces on a machine
Getting list of Local Interfaces on a machine... to find out the total no of list of local interfaces available on a machine. Here... the local interfaces which are instances of NetworkInterface class and displays
Overview of Networking through JAVA,Getting list of Local Interfaces on a machine
Getting list of Local Interfaces on a machine... to find out the total no of list of local interfaces available on a machine. Here... the local interfaces which are instances of NetworkInterface class and displays
Interfaces in flex
Interfaces in flex  Hi..... Please tell me about... What are - IStyleClient, IChildList, ILayoutManager, IToolTipManagerClient, IInvalidating, IValidatorListener, IFlexModule, IAutomationObject, IPropertyChangeNotifier
Getting the implemented Interfaces
Getting the implemented Interfaces     ... retrieve Interfaces (included in the program) and store their references... Finterface.java C:\roseindia>java Finterface interface
Graphical User Interfaces
Graphical User Interfaces       A class library is provided by the Java programming language... to the display area with a layout manager. As the Java programming language, the AWT
Identify the interfaces and methods a JMS message-driven bean must implement.
Identify the interfaces and methods a JMS message-driven bean must... Contract Next    Identify the interfaces and methods a JMS... ReservationHomeLocal resHome = (ReservationHomeLocal) jndiContext.lookup ("java
What are Callback interfaces?
What are Callback interfaces?  Hi, What are Callback interfaces? thanks
Hibernate Callback interfaces
Hibernate Callback interfaces  What are Callback interfaces?   Callback interfaces allow the application to receive a notification when something interesting happens to an object?for example, when an object is loaded
What are the Core interfaces are of Hibernate framework?
What are the Core interfaces are of Hibernate framework?  Hi, What are the Core interfaces are of Hibernate framework? Thanks
Java API
Java API       Java API Java API is not but a set of classes and interfaces that comes with the JDK. Java API is actually a huge collection of library
Hibernate: core interfaces of hibernate framework
Hibernate: core interfaces of hibernate framework  What are the core interfaces of hibernate framework   Most of hibernate based application code deals with following interfaces provided by the Hibernate Core
Collections Overview
Java NotesCollections Overview Summary of Collections interfaces Most of the methods in the data structure classes are those of the interfaces... classes and interfaces, are in the java.util package. Indentation shows the class
JLabel font and color
Java: JLabel font and color   Learn how to change the font, color, background of JLable component.  ... component in your Swing application.   The most user-friendly interfaces
Jep's Rich User Interfaces blog
Jep's Rich User Interfaces blog       About AJAX Performance and some other things by Jep Castelein of Backbase Read full Description
Interface in Java
Interface in Java       In this section we will learn about Interface and Marker Interfaces in Java... is also the interface's example. But in java programming language interface
FileFilter
. There are several file filtering classes and interfaces in Java, which often... Java: FileFilter javax.swing.filechooser.FileFilter is used to restrict the files that are shown in a JFileChooser. By default, a file chooser shows all
What is AWT in java
What is AWT in java      ... interfaces and classes as follows: Interfaces and Descriptions... the native system input events and it automatically test the java platform
Hibernate API
in Java. Hibernate provides API to perform CRUD operations on the persistence objects... on the persistent objects or the entity classes. The important classes and interfaces... - The org.hibernate.Session object is the main runtime interface between a Java application
Collection Interface
Java NotesCollection Interface The Collection interface is the parent of the List and Set interfaces, but not Map. Assume the following declaration for identifiers in the table below: Collection coll; boolean b; Object obj; int i
Collection Interface
Java NotesCollection Interface The Collection interface is the parent of the List and Set interfaces, but not Map. Assume the following declaration for identifiers in the table below: Collection coll; boolean b; Object obj; int i
EJB 3.1 - EJB Interfaces are Optional
In EJB 3.1, now you do not need to define any interfaces for Session Beans, just like JPA Entities and Message Driven Beans. All you have to do is annotate a POJO with the @Stateless or @Stateful to get a fully functional EJB
java
java  What is a Marker Interface?  In java language programming, interfaces with no methods are known as marker interfaces
JFormDesigner
;   JFormDesigner is an innovative GUI designer for Java? Swing user interfaces. Its outstanding support for JGoodies FormLayout... strings into the specified resource bundle (auto-externalizing). Java code
What is Java I/O?
What is Java I/O?       Introduction The Java Input/Output (I/O) is a part of java.io package.... How Files and Streams Work: Java uses streams to handle I/O operations
Adapter Pattern
; This pattern establishes a relationship between the two unrelated interfaces... the interfaces such as WindowAdapter, KeyAdapter, MouseAdapter... in a class say Fan class. The class is given below : Fan. java
Java API
, interfaces with their methods, constructors that come with JDK. Java API included...). There are three types of Java Application Programming Interfaces(API... and applet Java Naming and Directory interfacesJava Naming and Directory interfaces
Java Remote Interface
Java Remote Interface       The Remote interface identifies interfaces whose methods may be invoked... of remote interfaces and can extend other remote implementation classes
WindowTester Pro
offers cutting-edge technology for testing Swing and SWT Java graphical user interfaces. Spend less time and money testing Java GUIs Developers can focus... and consistent graphical user interfaces. Realize value over application lifespan
Java Util Examples List
utility interfaces and classes for easy manipulation of in-memory data. The java util... packages in the java programming world and package provides many interfaces... Java Util Examples List - Util Tutorials   
java
java  what is marker interface?   Interfaces with no methods is known as marker interfaces. Marker interfaces are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces are implemented

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.