This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Simple question on testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Simple question on testing" Watch "Simple question on testing" New topic

Simple question on testing

Dinesh Tahiliani
Ranch Hand

Joined: Aug 06, 2007
Posts: 486
[question removed]
source :
[ April 21, 2008: Message edited by: Ben Souther ]

Thanks<br />Dinesh
Henry Wong

Joined: Sep 28, 2004
Posts: 20158


Instead of just regurgitating lots of questions, and asking...

Can someone pls explain this

or simply doing....

Maybe it will be better for you to explain to us, what did you expect to happen, or what suprised you. Learning is more than just memorizing questions and answers. Learning is understanding. And we can't help you understand, if we don't know what you are misunderstanding....


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Anirudh Vyas
Ranch Hand

Joined: Oct 23, 2006
Posts: 93
There's nothing wrong in above result that i can make out. Can you clarify ?

Vyas, Anirudh
Arie Prastowo

Joined: Apr 20, 2008
Posts: 22
b=i==2 become false because i=args.length has been executed before


SCJP 5.0<br />Use the power of mind
Dinesh Tahiliani
Ranch Hand

Joined: Aug 06, 2007
Posts: 486
That is i think array has tht attribute i.e array.length.
Correct me i am wrong. please...
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

We require valid sources for mock questions.
The link you've given doesn't point to anything.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Simple question on testing
It's not a secret anymore!