Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have thrown aNullPointerException on attempting to print args.length.
Subscribe to:
Post Comments (Atom)
Welcome to techInterview, a site for technical interview questions, and other things that make you think!
0 comments:
Post a Comment