Share on Google+Share on Google+

Basavaraj Reddy
Serializable
1 Answer(s)      6 years and 5 months ago
Posted in : Java Beginners

what is serializable and when it is used?

Ads

View Answers

November 12, 2010 at 11:17 AM


Hello Friend,

It is an interface which is used to serialize the class.

For more information, visit the following links:

http://www.roseindia.net/java/beginners/serializable-singleton.shtml

http://www.roseindia.net/java/example/java/io/SerializingObject.shtml

Thanks










Related Tutorials/Questions & Answers:
Serializable
Serializable   what is serializable and when it is used
serializable & serialization
serializable & serialization  what is the difference between serializable and serialization in java
Advertisements
java serializable tutorial
java serializable tutorial  What is Java Serializable
java serializable default constructor
java serializable default constructor  java serializable default constructor
Implement the Serializable Interface
Implement the Serializable Interface  hii How many methods do u implement if implement the Serializable Interface?   hiii, The Serializable interface is just a "marker" interface, with no methods of its own
secret behind Serializable interface
secret behind Serializable interface  How serialization work? What is the secret behind it. Can we create our one serializable interface. If so how
Serializable Exception
Serializable Exception     ... Serializable The Serializable class derived from java .io.serializable that defines... classes are not serializable, the object stream methods will 
Implementing a Serializable Singleton
Implementing a Serializable Singleton       In Singeton classes only one instance will be created. We... of Serializable interface that is readResolve(). readResolve(): It returns Object
Java Interview Questions 3
;    Question:  How many methods in the Serializable interface? Answer:There is no method in the Serializable interface. The Serializable interface acts as a marker, telling the object
Interface Interceptor in Struts2.2.1
Interface Interceptor in Struts2.2.1 The Interface Interceptor (com.opensymphony.xwork2.interceptor ) extends Serializable interface and is a stateless class. Interceptors are one of the most powerful features of struts2.2.1.
SCJP Module-11 Question-2
Given a sample code: import java.io.*; class Upper { public Upper() { System.out.print(" Upper"); } } class Middle extends Upper implements Serializable { public Middle() { System.out.print(" Middle"
Core Java Interview Questions!
as transient in a Serializable class and the class is written
Java thread
Java thread  What is the use of serializable
Serialization
Serialization  HI... what is the use of SERIALIZABLE interface .....   Hi Friend, Serializable interface is a marker interface which does not contain any method. Serializable interface enable the transfer of any
core java - Java Beginners
core java  Hi guys, String class implements which interface plzzzzzzzzzzzzz can any body tell me its very very urgentttttttttttttttt Thanks  String implements the Serializable, CharSequence
java - Java Interview Questions
java   java.lang.exception is apublic or protected or serializable or any thing  Hi friend, For more information on java.lang.exception visit to : http://www.roseindia.net/java/exceptions/ http
java - Java Beginners
java  i am trying to serialize a transient object which is non-serializable .after serialization the object should restore the reference which was initially assigned. is it possible
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
java serialization
java serialization  when we serialize the object while this object having the another object reference but we dont want to serialize that object inside the serializable object? if we do this it throw the null pointer exception
cvs - Java Interview Questions
cvs  The class java.lang.Exception i. Is public ii. Extends Throwable iii. Implements Throwable iv. Is serializable   Hi friend, For more information on java.lang.exception visit to : http://www.roseindia.net
SCJP Module-11 Question-6
To have serialization what necessary steps to be followed ? Choose correct options? (A) Remove transient variable if any specified. (B) Class must implements Serializable interface. (C) Import of java.io.* is necessary.(D) Must
jdbc
_SERIALIZABLE TRANSACTION_READ_UNCOMMITTED TRANSACTION_REPEATABLE_READ   Use..._COMMITTED TRANSACTION_SERIALIZABLE TRANSACTION_READ_UNCOMMITTED TRANSACTION
core java - Java Beginners
are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces... have to implement the Serializable interface otherwise the compiler will throw
SCJP Module-11 Question-3
Given a sample code: import java.io.*; class Upper { } class Test implements Serializable { Upper a = new Upper(); public static void main(String... to compile (B) class Upper is not Serializable so it raise
Related to GenericServlet and HttpServlet
Serializable interface ?   GenericServlet and HttpServlet implement the Serializable interface so that servlet engines can "hybernate" the servlet state
Java Bean - Java Beginners
interface. Note that the Serializable interface does not have any methods... java.io.Serializable; public class SimpleBean extends Canvas implements Serializable
Difference between session.save() , session.saveOrUpdate() and session.persist() in Hibernate
() return Serializable object but session.persist() return void. session.save() returns the generated identifier (Serializable object
difference between enum and final class?
Comparable, Serializable All enum types implicitly extend java.lang.Enum.
jdbc
_SERIALIZABLE TRANSACTION_READ_UNCOMMITTED TRANSACTION_REPEATABLE_READ
null interface
to inform Java regarding what it can do with a class. For example, Serializable
Tutorials   
Java Spring Hibernate Struts Training What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized how to convert war file into .exe file using java code

Ads

 
Advertisement null

Ads