Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you check if an arraylist is not empty?



How do you check if an arraylist is not empty?..

Answer / Krati Vishnoi

To check if an ArrayList is not empty in Java, you can use the 'isEmpty()' method. If the ArrayList contains elements, the 'isEmpty()' method returns false and vice versa.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

1 Answers   Genpact,


What do you mean by stack?

1 Answers   Accenture,


why Java does not support multiple inheritances?

1 Answers   Aspire,


What is udp in java?

1 Answers  


What is a class component?

1 Answers  


Can we convert list to set in java?

1 Answers  


Is null in java?

1 Answers  


what is the difference between System.exit() and System.exit(1)?

1 Answers   eClinical Solutions, eClinical Works, eClinicalWorks,


Can we create our own daemon thread?

1 Answers  


Where are variables stored?

1 Answers  


Is it possible to declare abstract class as final?What happens if we do so?

1 Answers  


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1 Answers  


Categories