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 »

.NET Framework to .NET Core | Why | How | Tutorial

.NET Core is the future. For developers who want to know why and how they can migrate .NET Framework to .NET Core and what’s buzzing in .NET Core space, you are at the right place. In this post we could see, why do you need to port to .NET Core or stay with .NET Framework? Major components of both framework, when to use .NET Core? Why at some points you may not use .NET Core? Traditionally .NET Framework ran only on Windows devices. The Mono…

Continue reading »

Facebook and Twitter Sharing in IOS

Create a new Project in xcode and add Social.framework into your project. Good technical learning during corona times as well. Check Whether you have signed in facebook and twitter account in your iphone settings.If not sign in. In ViewController.h file, #import @interface ViewController : UIViewController – (IBAction)shareButton:(id)sender; @end In ViewController.m file, #import “ViewController.h” #import @interface ViewController () @end @implementation ViewController – (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } – (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; //…

Continue reading »