StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...

Serialization and Externalization in Programming - Assignment Example

Cite this document
Summary
The assignment "Serialization and Externalization in Programming" focuses on the critical analysis of the major issues in the processes of serialization and externalization in programming. In java programming, serialization has been used in the conversion of objects into a readable format…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER92.1% of users find it useful
Serialization and Externalization in Programming
Read Text Preview

Extract of sample "Serialization and Externalization in Programming"

Download file to see previous pages

The process of serialization and deserialization is independent of the platform used, that is, data serialized on one machine can be deserialized on a completely different machine with a different platform (D'Anjou, 2005).

Serialization in java has been used mainly to facilitate communication between different machines, for persistence, deep copying, caching, and cross java virtual machine synchronization. The use of serialization is advantageous since it allows for refactoring, it is customizable and easy to use, and allows encryption, compression, and authentication thus facilitating secure computing lastly, the mechanism allows the interchange of libraries between java and other programming languages such as C++ among other advantages.

Despite the above-stated functions and advantages of serialization in java, there are too many disadvantages associated with serialization. Serialization offers significant overhead thus it cannot be used with large objects. Also, serialization facilitates increased memory requirements for a system. The use of data serialization also leads to the breakage of the identity of objects, and the invasion of the programming model. To address the disadvantages and limitations of serialization, an input/output process mechanism has been introduced. This mechanism is referred to as Externalization. Not only is Externalization used to eliminate the limitations of serializations, but also in some cases, it is exclusively required.

Externalization refers to the process in which an externalizable interface is implemented to facilitate the persistence and restoration of the object the externalizable interface works by extending the serializable interface. Moreover, the externalizable interface facilitates the definition of custom rules and also, the definition of a customizable serialization mechanism. Thus, it can be easily said that externalization is an extension of serialization. The process of using Externalization is similar to the implementation process of externalization.

The serialization mechanism’s serializable interface is by default serialized while in Externalization, there is a provision on the interface that facilitates complete control over the process of serialization. This makes externalization to be more advanced than serialization. The Externalizable interface consists of two methods, the public void readExternal (ObjectInput in) and the public void writeExternal (ObjectOutput out). In externalization, the process of serialization is extended by the addition of readExternal, and write External. The use of these two classes ensures that they are called automatically during deserialization and serialization thus ensuring full control of the entire serialization and deserialization process.

The major difference between serialization and externalization is when using externalization, there is full control over the reading and writing process. This is achieved by the implementation of write external methods and read external methods. Also, another difference arises in that in externalization, there is custom serialization while in serialization, there is the use of the default process of the serialization i.e., the inbuilt serialization mechanism.

The advantage of serialization can be summarized into two major advantages:
- There is an extreme reduction in the file size as compared to serialization.
- The use of externalization facilitates customization which is very effective, efficient, and easy.

...Download file to see next pages Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Programming III ( Advanced ) Assignment Example | Topics and Well Written Essays - 750 words”, n.d.)
Retrieved from https://studentshare.org/logic-programming/1631982-programming-iii-advanced
(Programming III ( Advanced ) Assignment Example | Topics and Well Written Essays - 750 Words)
https://studentshare.org/logic-programming/1631982-programming-iii-advanced.
“Programming III ( Advanced ) Assignment Example | Topics and Well Written Essays - 750 Words”, n.d. https://studentshare.org/logic-programming/1631982-programming-iii-advanced.
  • Cited: 0 times

CHECK THESE SAMPLES OF Serialization and Externalization in Programming

How the IT effect Management

20 Pages (5000 words) Research Paper

Influence of National Culture on Employee Commitment Forms

The author of the paper "Influence of National Culture on Employee Commitment Forms" will begin with the statement that Saudi Arabia is experiencing a transformative period in its economic history, as its market has been opened up for foreign investment.... .... ... ... The last 5 years have seen a dramatic increase in the amount of foreign investment in Saudi Arabia particularly through International Joint Ventures....
151 Pages (37750 words) Essay

Oswestry Mutual Insurance

The relatively high ratios for OMI are due to fierce price competition, which caused overall premium income levels to declined.... Auto repairs, health related services, and court awards in liability cases have increased at a higher than expected rate, this are normal claim costs.... ... ... ... The natural disasters, storms, floods have taken their toll....
14 Pages (3500 words) Essay

How the Media Affects Diet, Nutrition and Exercise

According to a recent survey adolescent girls mentioned the "ideal girl" as being 5'7", 100 pounds, size 5, with long blonde hair and blue eyes (Nichter & Nichter, 1991).... The girls associated this ideal to the "model look" found in teen magazines.... This type of observation, heard in the background of significant analyses of sociocultural factors (Bordo, 1993; Kilbourne, 1994; Wolf, 1991), focuses concentration on the role of mass media in the development of impracticable standards of beauty, body discontent, and messy eating. ...
20 Pages (5000 words) Essay

Oswestry Mutual Insurance

The  relatively  high  ratios  for  OMI  are  due  to  fierce  price  competition,  which  caused  overall  premium  income  levels  to  declined.... ? Auto  repairs,  health  related  services,  and  court  awards  in  liability  cases  have .... ... ... d  at  a  higher  than  expected  rate,  this  are  normal  claim  costs....
14 Pages (3500 words) Essay

Effects of National Culture on the Marketing Strategies

The present paper aims to relate the marketing strategy of retailers to the cultural factors of foreign markets in order to develop a model that represents how specific national cultures influence the marketing strategy of international retailers.... ... ... ... The purpose of this study is to determine what effect national cultural has on the marketing strategies of business....
22 Pages (5500 words) Dissertation

Youth Delinquency in Relation to Gender and Shifting Representations in the Media

The author of this paper "Youth Delinquency in Relation to Gender and Shifting Representations in the Media" will make an earnest attempt to explore the question of gender differences among juvenile delinquents, as well as the correlations between them.... .... ... ... National research found that sexual and physical abuse played a role in a girl's delinquency, i....
6 Pages (1500 words) Literature review

Television Usage in China

The paper 'Television Usage in China' focuses on the debate on the implication of media that has been a subject of much debate in the international field media community.... The focus thereby is on relations of media and the manner reality programs are developed in different countries.... ... ... ...
23 Pages (5750 words) Research Proposal
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us