Does assert throw an exception java?

In Java, does assert throw an exception?

An assertion in Java assures that any assumptions made in the code are valid. When you execute an assertion, it is presumed to be true. The JVM will issue an Assertion error if the assertion is false.