<P> The throw statement is used to throw an exception and end the execution of the block or method . The thrown exception instance is written after the throw statement . </P> <P> Java has built - in tools for multi-thread programming . For the purposes of thread synchronization the synchronized statement is included in Java language . </P> <P> To make a code block synchronized, it is preceded by the synchronized keyword followed by the lock object inside the brackets . When the executing thread reaches the synchronized block, it acquires a mutual exclusion lock, executes the block, then releases the lock . No threads may enter this block until the lock is released . Any non-null reference type may be used as the lock . </P> <P> assert statements have been available since J2SE 1.4 . These types of statements are used to make assertions in the source code, which can be turned on and off during execution for specific classes or packages . To declare an assertion the assert keyword is used followed by a conditional expression . If it evaluates to false when the statement is executed, an exception is thrown . This statement can include a colon followed by another expression, which will act as the exception's detail message . </P>

What character is used to end a statement in java