Styrow.dev
Question 161 of 247
Java Topic: General medium

What is assert keyword used for?

Question

What is assert keyword used for?

Answer

The assert keyword is used to make an assertion a statement which the programmer believes is always true at that point in the program. This keyword is intended to aid in testing and debugging.


šŸ“² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.