As we know Room is a persistence library from the architecture component introduced by Google and most…