Buggy.java

/** This program exhibits some bugs, so we can use a debugger */ public class Buggy { static String name; public static void main(String[] args) { int n = name.length( ); // bug # 1 System.out.println(n); name += "; The end."; // bug #2 System.out.println(name); // #3 } }
This program exhibits some bugs, so we can use a debugger

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.