These methods can be used as a hint to the JVM, in order to start a garbage collection. However, this it is up to the Java Virtual Machine (JVM) to…
Author: kumaresan
The difference between Serializable and Externalizable in Java?
Posted in Education, Uncategorized, and WhoCodeFirst
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…
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,…