December 2019
Intermediate to advanced
314 pages
6h 51m
English
Imperative programming is the way most programmers write their code every day. Wait a minute – what does imperative programming mean? In a concise statement, we can say that imperative programming means that lines of code get executed in a sequence, statement by statement, as shown in the following example:
URL url = new URL("http://acme.com/");BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));String line;while ((line = in.readLine()) != null) { System.out.println(line);}in.close();
As you can see, imperative programming can use loops or conditional statements to jump to different parts of code. Don't be fooled by this, though. As long as your debugger clearly points ...
Read now
Unlock full access