Beware of compiler!
All things are lawful, but not all things are profitable.
Knute Snortum wrote:You should check if sd is null before checking its length.
Beware of compiler!
All things are lawful, but not all things are profitable.
Knute Snortum wrote:On line nine? You need to check the size of args first.
If it's not line nine, please post the full error message.
Beware of compiler!
Beware of compiler!
I have referenced your topic in our dedicated OCA certification forum.Akash Trivedi wrote:Yeah it is related to OCA.
Liutauras Vilda wrote:
I have referenced your topic in our dedicated OCA certification forum.Akash Trivedi wrote:Yeah it is related to OCA.
I have to admit I do not understand the actual problem you're trying to solve. I do understand the mechanics what is wrong and why you're getting such error, but probably you understand that yourself.
You can try to write down the chapter (numbers) you're refering to, so someone could understand the actual topic's context and which subject it is meant to teach.
Beware of compiler!
Yes, that way is much better I think. I don't have myself that book (I have two others), but that book is popular among candidates, so be patient, and you should get more feedback.Akash Trivedi wrote:I edited the topic's name.Is it okay.?
Liutauras Vilda wrote:
Yes, that way is much better I think. I don't have myself that book (I have two others), but that book is popular among candidates, so be patient, and you should get more feedback.Akash Trivedi wrote:I edited the topic's name.Is it okay.?
Akash Trivedi wrote:well as I approached I thought there must be some exception catching mechanism which throws an exception(user-defined) if no arg is passed .
Well,now I think it is already there(i.e ArrayIndexOutOfBoundsException) and I shouldn't override it. I just want to know if there is some way,we can avoid it by passing our own exception. I will appreciate if you enlighten me on how should I improve my programming methodology.
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|