3) What is method overriding in java?Answer: Will have methods with the same signature (same name, same signature, same return type) in the superclass and subclass
Q) What is encapsulation ?Answer: The process of wrapping or putting up of data in to a single unit class and keeps data safe from misuse is called encapsulation.