Assume that a class 'Test' is having two constant variables and we have created two objects for "Test" class. Now How many constants are present in the memory ?
Constant variables will be created in memory only once, irrespective of number of objects being created. Constants are class specific.
Back To Top