From the course: Java 8+ Essential Training: Objects and APIs

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Syntax errors vs. exceptions

Syntax errors vs. exceptions - Java Tutorial

From the course: Java 8+ Essential Training: Objects and APIs

Start my 1-month free trial

Syntax errors vs. exceptions

- [Instructor] The first course in this series focused on Java's fundamental building blocks. Data types, simple flow control, and so on. Along the way you might have encountered coding errors resulting from all sorts of common challenges such as spelling Java keywords correctly or putting statements in the right order. Rest assured you're not alone. To code is to deal with bugs. All software has them and programming always involves plenty of time figuring out why bugs are happening and fixing them. There are two broad categories of errors you'll encounter in Java programming. First of all there are syntax errors. These are coding errors that you have to fix before you can compile and run your application. Let's say, for example, that I wanted to output the words Hello world. I'll start with sout and that's a code template that will expand to System.out.println and then I'll type Hello world. Now let's say that I forgot to put in the semicolon. IntelliJ Idea will help you as much as…

Contents