Garbage Collector in Java

Java is capable of automatically releasing the unreferenced memory. This is achieved when a object is unused. To make a object unused make the reference variable pointing to that object as null pointer. Lets see an Example below, public void TestMethod() { String s = new String(“Welcome to CodeParent”); System.out.println(s); s = null; } Other options in java you can use System.gc() and Runtime.gc() methods, if you call these methods explicitly, the JVM makes efforts towards recycling the unused objects, but there is no guarantee…

Continue reading »

Java Features

SIMPLE You will find java easier and simple if you are aware of object-oriented language, especially C++. Object-Oriented Java has no global functions. All functions are invoked through an object. Distributed Java facilitates the building of distributed applications by a collection of classes for use in networking application. Java can easily access a remote server using java libraries such as URL and support other protocols such as HTTP, FTP, and classes for creating socket-level connections. Interpreted Once java interpreter is ported to a specific machine…

Continue reading »

Microservices Architecture in Cloud | How different is SOA and Microservices

Microservices are the evolution from SOA architecture. As we know, the traditional Monolithic Architecture lacks in granular scalability and consumes lot of time to build and deploy, SOA was born. And with the increasing adoption of Cloud technologies and DevOps the rise of Microservices over SOA is inevitable. How different is SOA and Microservices? – The talk of the town question is here. The answer is simple, Microservices are more granular than SOA. Service Oriented Architecture is coarsely grained and Microservices are finely grained. SOA…

Continue reading »