0% found this document useful (0 votes)
0 views

Coding and Debugging

The document outlines coding standards, emphasizing the use of underscores for variable names, proper indentation, and clear method naming. It discusses debugging facilities available in Netbeans IDE, including line break tools and console for error messages, which aid in identifying and resolving issues like NullPointerExceptions. Additionally, it highlights the importance of debugging in ensuring programs run correctly and using try-catch blocks to handle unexpected inputs.

Uploaded by

koolsumit2016
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Coding and Debugging

The document outlines coding standards, emphasizing the use of underscores for variable names, proper indentation, and clear method naming. It discusses debugging facilities available in Netbeans IDE, including line break tools and console for error messages, which aid in identifying and resolving issues like NullPointerExceptions. Additionally, it highlights the importance of debugging in ensuring programs run correctly and using try-catch blocks to handle unexpected inputs.

Uploaded by

koolsumit2016
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Coding and Debugging

Coding Standard and Debugging Assessment


Coding Standard.
• Those variables whose names are a combination of more than one
word are separated by an underscore.
• The codes are properly indented with tabs.
• There’s a space after giving a comma separating two function
arguments.
• Each nested block is properly indented with tabs and space.
• Each beginning brace starts right after the ending of the parameter
brackets.
• The name of the methods are clear and describe the exact functions
that the method is supposed to perform.
Debugging facilities.
• The code is written in Netbeans IDE.
• The Netbeans provide a line break tool.
• Line break is essential to find the faulty line.
• Netbeans also provide other debugging tools like console.
• Console is important to view any message or exception that are being
thrown by the compiler, it is extremely useful to debug applications.
• Code also throws some NullPointerExceptions, it helps to check if the
suspected function is returning null or not, it helps to root out possible
bugs during the development. As sometimes the Function may return
null or other times, it may run just fine.
How the debugging helps?
• Debugging is very important as the programs does not always run as it’s
supposed to.
• Manually throwing out exceptions can help to ensure whether the suspected
function could malfunction at any time, in which case, an exception will be
thrown, and it will help to root out the exact cause.
• The compiler itself throws out exceptions when the error is fatal.
• Using try and catch can help in cases where, the passing arguments are
beyond the control of the programmer, like when a program expects a
number as an input, but receives a letter instead, we can catch the exception
in try and display information needed to guide the user about what to do.
• Line breaks helps to find the faulty lines.

You might also like