What is garbage collection in Java and how is it used?
The garbage collector is a program which runs on the Java Virtual Machine which gets rid of objects which are not being used by a Java application anymore. It is a form of automatic memory management.
Which SQL command is used to add a row?
Define a class and an object.
Class is a collection of data member and member function. Class is a user define data type. Object is a class type variable. Objects are also called instance of the class. Each object contains all members(variables and functions) declared in the class.