473,382 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

what does the ( java.io.Serializable) do?

5
I just want to know what is the work of(java.io.Serializable),how can i use it ?
May 7 '14 #1
2 1383
chaarmann
785 Expert 512MB
The work is: to save and load complex objects to file or database.
You can use it by implementing the serializable interface for your class (object) and then call the serailizable methods on your object
May 8 '14 #2
Nepomuk
3,112 Expert 2GB
To add to chaarmanns answer: The interface itself has no functionality and it defines no functions that have to be implemented. It is what you call a marker interface; classes can implement it and thereby say "you can serialize me and everything inside me (that I haven't explicitly marked otherwise)". The latter is not enforced but expected by some tools.

To learn more about the Serializable interface, I'd recommend reading the JavaDoc.
May 8 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

70
by: Roy Yao | last post by:
Does it mean "(sizeof(int))* (p)" or "sizeof( (int)(*p) )" ? According to my analysis, operator sizeof, (type) and * have the same precedence, and they combine from right to left. Then this...
1
by: Niklas | last post by:
H What is Java Webstart counterpart in .NET Regard /Niklas
5
by: Steven T. Hatton | last post by:
I've seen people here write that C++ doesn't support modules. What does that mean? 'Module' is a very nebulous term in my book. It probably means something quite different to me than what it does...
5
by: John Creighton | last post by:
What does BCPL stand for is it one language or a family of languages. My bust guess it the B C Programming Languages. But that is just a short in the dark. I am also not sure what languages fall...
9
by: Andrey Koptyaev | last post by:
What does it mean "fieldRequired.lenght" in php 4.1 ? I know "fieldRequired->lenght" but don't know "fieldRequired.lenght" Please help to understand. Thank you!
4
tpgames
by: tpgames | last post by:
Does Java work on a linux server? If not, is there a work around? Thanks!
1
by: Fahad Faisal | last post by:
what is java
7
by: tundra999 | last post by:
Such as this: return base.CalculatePrice() * 0.9M; What data type does the 'M' stand for? I can't find a listing of these shorthand notations anywhere. Thanks, Tom
1
by: stmfc | last post by:
i see many tutorials,discussions etc. on java frameworks like struts and spring, and also some other frameworks for other languages. but still i cannot figure out what does "framework" mean? is...
2
by: Naha | last post by:
Hi, Can anyone help me please? My code throws this error: init: deps-jar: compile:
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.