vivek886 wrote:
is this program right to check whether string is alpha or numeric
Technically, yes, but using exceptions in such a fashion could be costly.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius