I am Ravi. I came across a application of the static keyword but i could not write a program to see how it works. It is "a return statement without any parameters can be given in a static initialization block". Anybody please help me?
First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. "Handles" and joke names aren't OK here. You can change your display name here. Thanks!
Second, please don't post your questions in more than one forum. It just wastes people's time if they give a detailed answer in one copy of your thread if someone's already answered another copy.
Third, be sure to post your questions in the right forum. This one has nothing to do with servlets, so normally I would delete it since there's a duplicate in Java in General (Intermediate.) Since it's been answered, I'll delete that other copy, then move this thread there.