Tech

Constructors in Java

Constructors are used every time to initialize instance variables. There are some additional rules associated with constructors that are often asked in interviews.Hence revising those here through a blog post. 1.A constructor is used to initialize instance variables. 2.When an object of an class is created,JVM goes to the class and searches for that matching…

Tech

How Recycler view works in android

I recently did a mini-project Quote app, I used listview for that. The project started consuming lots of memory and CPU whenever I scroll through the quotes. After reading few articles and watching videos. I realized there is a better way to show a list in android, which is Recycler View. In this post, we…