How do you check if an int field is empty?

If you are not assigning any value to int default value will be 0. If you want to check for null then make int as Integer in declaration. Then Integer object can be null. So, you can check where it is null or not.

Sizin İçin Seçtik  What object is null in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

How do you check if an int field is empty?

If you are not assigning any value to int default value will be 0. If you want to check for null then make int as Integer in declaration. Then Integer object can be null. So, you can check where it is null or not.

Sizin İçin Seçtik  Lina kaç TL?

Leave a Reply

Your email address will not be published. Required fields are marked *