answersLogoWhite

Top Answer
User Avatar
Wiki User
Answered 2011-02-28 10:01:04

A Serializable class in Java is one that implements the Serializable interface and can be actually Serialized and saved into a file.

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Still Have Questions?

Related Questions

Can you serialize the ArrayList class in Java?

The ArrayList class itself is serializable and will serialize if it contains only serializable objects.If, however, you add non-serializable objects into the list then it will not serialize, but will throw a NotSerializableException.


What in java is not serializable?

Objects that do not implement Serializable.


What is java beans?

If you know what the Java programming language and runtime are, then you can understand Java beans. A bean is an ordinary Java class that fits certain simple guidelines about predictable operation: 1. the class has a zero argument constructor; 2. the class is serializable; and 3. each member variable in the class has a public setter and getter method.


Why you use serialization in java?

Serialization is a technique in java using which the contents of a java object (A class instance) can be written into a flat file. This value can be unserialized or deserialized at a later point of time to create the object. Any class that implements the Serializable interface can be serialized.


How does java handle string?

The String class is defined in the java.lang package and hence is implicitly available to all the programs in Java. The String class is declared as final, which means that it cannot be subclassed. It extends the Object class and implements the Serializable, Comparable, and CharSequence interfaces.


How is Java persistence done?

Java persistence is implemented using serialization. Serialization is a technique in java using which the contents of a java object (A class instance) can be written into a flat file. This value can be unserialized or deserialized at a later point of time to create the object. Any class that implements the Serializable interface can be serialized.


What are java serializable interface?

The serializable interface is used to perform the serialization action. Serialization is the process by which the contents of an object are written to any form of storage - say a flat file. This data stored in the flat file can be de-serialized at any time to create the object. Ex: public class Test implements Serializable { … //lots of code }


What is serialization?

Serialization is the ability to easily store the state of an Object in memory onto some long-term medium (on a hard drive, for example). Basically, the Serializable interface allows us to tell Java to turn our Object into a byte-stream. The Object could be a document that the user is working on, or a more complex data class which needs the ability to be saved to the hard drive. Using the Serializable interface (and related I/O methods), Java will do most of the work for us.


What do java class file contains?

A java class file contains java classes.


What is parent class in java?

Object Class is the parent class of all classes in java.Every class in the Java system is a descendant (direct or indirect) of the Object class.


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


What is the extension of a java class file?

Compiled .class Source .java


What is the extension of a compiled Java file?

Java source files have the .java extension, compiled Java class files have the .class extension.


Classes as the base class of it self?

Classes are not base class of itself. Every class in Java is a derived class. Every class in Java has 'Object' as the Superclass. The Object class is the only class in JAVA that has no Superclass!


Why can't a c plus plus class be derived from a Java class?

I don't see why it couldn't be. Unless the Java class uses techniques or methods which are available to Java but not C++, then there is no reason that a C++ class couldn't be based on a Java class.


What do you get when you compile a java program?

When you compile a Java source file (.java) you get a Java bytecode file (.class). The bytecode in these .class files can be executed by the Java Virtual Machine.


The actions in a java class are called?

The actions in a java class are called methods.


What is meant by a class in java programming language?

A class is a file that ends in .java


What is main class in a Java program?

Object is the main class in Java Program


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


What is Date class in java?

i am management student,and want to know answer that ,what is date class in java?


How do you call main class with in main class in java?

We can't call a class. We always call a method in java.


When java uses compiler?

What i know is java we will use compiler when it want to get class file(file with .class extension) from java file(file with .java extension).


Command use on how to run a java program?

On the command line, type "java" followed by the filename of the compiled class, e.g.:java myClass.classOn the command line, type "java" followed by the filename of the compiled class, e.g.:java myClass.classOn the command line, type "java" followed by the filename of the compiled class, e.g.:java myClass.classOn the command line, type "java" followed by the filename of the compiled class, e.g.:java myClass.class


What is the meaning of a class in Java programming?

Class in java Programming is nothing but a collection of methodes used in different programmig. example of Java class is Rectangle,*etc etc.


Still have questions?