Change max limit of Integer.MAX_VALUE

Is there any possibility that we limit the max value to 1000 or so in one program only. In java Max_ VALUE , any possibility to limit it's max value

Jon Skeet
people
quotationmark

No. Instead, you should change your code to validate input etc so that it's within the bounds you want. You can't change what Java itself considers to be the maximum int value.

people

See more on this question at Stackoverflow