Java Programming and Technical Programming Definition

Q. What is method overloading and method overriding?

A. Method overloading: When a method in a class having the same method name with different arguments is said to be method overloading. Method overriding : When a method in a class having the same method name with same arguments is said to be method overriding.

Read Solution (Total 1)

Java Other Question

Q. What is the use of bin and lib in JDK?

A. Bin contains all tools such as javac, appletviewer, awt tool, etc., whereas lib contains API and all
packages
Q. What is the difference between this() and super()?

A. This() can be used to invoke a constructor of the same class whereas super() can be used to invoke a super class constructor.