In programming (all programming, not just Java), a “block” of code is a group of statements. sometimes these statements are inside a set of braces ({}) but terminology is loose in the computer field so you will see and hear the term used more or less strictly. I sometimes use the term “block” to mean a group of statements that follow one after the other without loops or branching. Technically, this is not quite correct. The real term is “sequence structure”. In this video you will see a sequence structure implemented in Java.

Video here:

Advertisements