| Software Developer | Programming enthusiast | Loves DSA and AI |

One main Java OOPs concept you must know.

Image for post
Image for post
Encapsulation

What Is Encapsulation?


What, why, and how: everything you need to know.

Image for post
Image for post
Inner Class Example

What Is a Nested Class?

class OuterClass {
...
class NestedClass {
...
}
}
  1. static nested class.
  2. inner class(non-static nested class).


Don’t misuse synchronized and volatile in your application.

Image for post
Image for post
Cache Coherence


How and when to use the toString method in your java application.

Image for post
Image for post
Photo by Gaelle Marcel on Unsplash

Default implementation of toString() Method in Object Class:

public String toString()
{
return getClass().getName()+"@"+Integer.toHexString(hashCode());
}


Know the most asked sorting data structure interview question.

Image for post
Image for post
Partitioning the array

What Is Quick Sort Algorithm?

  1. The first element as pivot
  2. The last element as pivot
  3. The random element as pivot
  4. The median is a pivot.


Your possible next interview question on object-oriented paradigm.

Image for post
Image for post
Tight and Loose Coupling

What Is Tight and Loose Coupling?


Image for post
Image for post
Priority queue example

What is Priority Queue?


Image for post
Image for post
Boxing and UnBoxing

What Are Autoboxing and Unboxing?


Know the Circular Queue data structure and operations related to it.

Image for post
Image for post
Circular Queue

Why Do We Need Circular Queue?


Know about Queue data structure and its operations.

Image for post
Image for post
Queue Operations

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store