Which would you go for? Spring boot cron job,scheduled tasks vs Events in Mysql.

I was recently studying about using cron jobs in spring boot for a particular use case for my small side project. I ended up not using the cron job but rather went the SQL way(will explain this in detail below). However,in the process I learnt a lot about cron jobs and scheduling in spring boot so this is just a small article about my learnings. But first I shall tell you a little about my use case and why I thought about cron jobs in the first place…....

January 12, 2022 · 4 min · 831 words · Shweta Kadam

Polymorphism in Java

Just revisiting and explaining myself Polymorphism concept here through a blog post. The words Polymorphism means multiple forms. In Java ,Polymorphism means multiple forms of an object. We shall divide this article into 3 sections. 1.Syntax 2.Calling a variable polymorphically. 3.Calling a method polymorphically. 1.SyntaxPermalink Now in polymorphism in Java, the thumb key rule to remember is super = subPermalink Meaning the variable reference (LHS) must always be a super class reference and the object initialization(RHS) must a sub class....

July 14, 2021 · 2 min · 330 words · Shweta Kadam

How constructors work 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. A constructor is used to initialize instance variables When an object of an class is created,JVM goes to the class and searches for that matching constructor.If Constructor is NOT PRESENT it gives a compile error. By default every class has a constructor called default no argument constructor....

June 14, 2021 · 2 min · 385 words · Shweta Kadam