This post is about my current assignments as you might have noticed the blog being stale lately.

I completed my Masters and have joined OSIsoft (makers of the PI System) as a full time developer. Majorly, I’d be contributing to PI Coresight front-end development. Considering the exponential growth in the field of UI/UX and complexity of managing real time data, this new role would be quite exciting and challenging.

When you reference a page which is not in cache, it is brought into the cache from Main Memory (or virtual memory). It might be possible that cache is already full, thus require removing an already existing page from cache. In LRU cache, the Least Recently Used frame is removed.

Java has different implementations of Map interface: HashMap, TreeMap, LinkedHashMap, HashTable. Each implementation has its pros and cons which should be considered wisely while deciding data structure for your objects. Here is the summary of major differences:

Essentially this post is about comparing two objects by their hashCode or actual content.

Question: How to find whether a collection of objects contains an object with a specific field value?

Let’s say you have a class Node with a field name and a collection of these nodes, List nodes. Here, to find out whether nodes collection contains a node with value 'A' you can use a simple `for` loop:

Final keyword means that a program cannot change the value of a final variable. But the actual meaning depends on its current context.

Final class: cannot have subclass i.e. you can’t inherit it.

Final variables: cannot be changed once initialized.

Final methods: cannot be overridden i.e. you can have only one implementation of final method.

Final vs String: String are immutable i.e. you cannot change value of a string once initialized. But Final String abc means that you cannot assign any other value to string variable abc once initialized.

Static keyword represents that a particular method or variable is associated with a class rather than any particular instance of the class.