Free Online Whiteboard Base64 Converter JSON Utility SmartTool PDF

Category: Core Java

Does Java have destructors? 0

Does Java have destructors?

Java does not have destructors; but it has finalizers that does a similar job. Garbage collector does the job working in the background Here is the syntax public void finalize(){ } if an object...

Recursive Methods 0

Recursive Methods

Recursive Methods What is Recursive Function? A recursive function is a function that calls itself during its execution. This enables the function to repeat itself several times, outputting the result and the end of...

Overloading Vs Overriding 0

Overloading Vs Overriding

Overloading vs Overriding A Way of Implementing Polymorphism Overloading Overloading refers to having more than one method with the same name in a class whereas overriding refers to redefining methods of the superclass in...

Java Serialization Vs De-Serialization 0

Java Serialization Vs De-Serialization

Java Serialization Vs De-Serialization The capability of an object to exist beyond the execution of the program that created it is known as persistence To make the file object persistent, the file object has...

What is Serialization and deserialization? 0

What is Serialization and deserialization?

Java Serialization Vs De-Serialization The capability of an object to exist beyond the execution of the program that created it is known as persistence To make the file object persistent, the file object has...

Java Call By Value and Call By Reference 0

Java Call By Value and Call By Reference

Java Call By Value and Call By Reference Pass by value in java means passing a copy of the value to be passed. Pass by reference in java means the passing the address itself....

jvm-memory 0

Java (JVM) Memory Types

Java has only two types of memory when it comes to JVM. Heap memory and Non-heap memory. All the other memory jargons you hear are logical part of either of these two. Heap Memory...

Difference between Abstract Class and Interface 0

Difference between Abstract Class and Interface

difference between Abstract Class and Interface? 1. Main difference is methods of a Java interface are implicitly abstract and cannot have implementations. A Java abstract class can have instance methods that implements a default...

What is a transient variable? 0

What is a transient variable?

Transient variable can’t be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can’t be written...