This is one of the frequently asked questions from Java Serialization. The interviewer has been asking this question since the day Serialization was introduced in Java, but yet only a…
Category: WhoCodeFirst
learn2code_WhoCodeFirst
Explain the Externalizable interface?
Posted in Education, and WhoCodeFirst
The Serializable interface gets us automatic serialization capability for objects of our class. On the other hand, the Externalizable interface provides a way to implement a custom serialization mechanism. A…
How To Merge Two Arrays in JavaScript
Posted in Education, and WhoCodeFirst
const one = [`aaa`, `bbb`, `ccc`] const two = [`ddd`, `eee`, `fff`] You have the above arrays.How will you merge those into a single array? You can use concat method.This method will…
What are a few ways you can improve the memory footprint of a Java application?
Posted in Education, and WhoCodeFirst
Here are three key steps you can take to improve the memory footprint: Limiting the scope of local variables. Each time the top scope from the stack is popped up,…
Is it better to return NULL or empty values from functions/methods where the return value is not present?
Posted in Education, and WhoCodeFirst
Returning null is usually the best idea if you intend to indicate that no data is available. An empty object implies data has been returned, whereas returning null clearly indicates that nothing has been…