Sun Certified Java Programmer 310-065-Lesson 14-Control Flow, Exceptions and assertions-Part 2 (Covering questions on assertions, for loops and exceptions) | Java courses
In this video, We specifically covered questions on assertions, for loops and exceptions.
"
download the application please visit www.mrbool.com/player
Title: Sun
Certified
Java Programmer 310-065-Lesson 14-Control Flow, Exceptions and assertions-Part 2 (Covering questions on assertions, for loops and exceptions)
Duration: 16 minutes
Summary: This video continues our discussion of control flow, exceptions and assertions. We specifically covered questions on assertions, for loops and exceptions. Assertions are typically enabled during testing but disabled during deployment. To enable assertions, we can use the -ea command-line flag. You can enable assertions on a class-by-class basis and package-by-package basis. We also discussed how it is not appropriate to use assertions to validate command-line arguments and change a program state. When it comes to exceptions, we discussed how an overriding method cannot throw a broader exception than the method it is overriding.
Methodology of the development of example: Good coding standard and simplified design to prepare for the Java programmer certification exam CX-310-065.
Technology Used: Java - Core Concepts.
Keywords: Sun Certified Java Programmer, if statement, switch statement, boolean, default, for loop, declaration, expression, break, continue, labeled break, labeled continue, Exception, checked exception, unchecked exception, try block, catch block, finally block, Error, Runtime exception, assert.
Help us to improve! Give us your feedback: