JAVA PROGRAMING Explain the following symbolskey words retur
JAVA PROGRAMING
Explain the following symbols/key words:
return
finalize
private
new
final
/=
ll
Solution
return: return keyword used for returning a value and flow of control from current state to position where function is called.. return value belongs to appropriate datatype as specified in delcaration of the function..
finalize: finalize is used to perform clean up processing just before object is garbage collected.used for finalizing the cleanup process.
private: used to denote the area of access of a variable, variables that are declared as private, can be accessed with in the program/class only,it is know as access specifier
new: it is used create an instance of an object, it allocates memory to the object., used for creating variables of different datatypes
final: this keyword makes the values of the variables unchanged.
