课程: Java 8+ Essential Training: Objects and APIs

今天就学习课程吧!

今天就开通帐号,24,600 门业界名师课程任您挑!

Syntax errors vs. exceptions

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…

内容