WDD_lec_05 - Web Design & Development Lecture 5 Common...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture 5
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Common Errors
Background image of page 2
Common Errors NoClassDefFoundError NoSuchMethodError: main Cannot resolve symbol Local variables must be initialized ArrayIndexOutofBounds & NumberFormat exception
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error: Exception in thread “main” NoClassDefFoundError public class CommonErrors{ public static void main (String args[]) { System.out.println(“Hello World”); } }
Background image of page 4
Error: Exception in thread “main” NoSuchMethodError: main public class CommonErrors{ public static void display () { System.out.println(“hello world”); } } public static void main (String args[]) { CommonErrors.display(); }
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error: cannot resolve symbol public class CommonErrors{ public static void main (String args[]) { int number; System.out.println(number1); } } number );
Background image of page 6
Error: Local variable not initialized public class CommonErrors{ public static void main (String args[]) { int number ; System.out.println(number); } } = 10 ;
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error: ArrayIndexOutofBoundsException public class CommonErrors{ public static void main (String args[]) { System.out.println(args[0]); } }
Background image of page 8
Error: NumberFormatException public class CommonErrors{ public static void main (String args[]) { String s = “20s”; int number = Integer.parseInt(s); } } = “20” ;
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error: NullPointerException public class CommonErrors{ public static void main (String args[ ]) { Student s = null; s.print( ); } }
Background image of page 10
How to Use Java Doc
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/01/2010 for the course CS CS506 taught by Professor mr. umair javed during the Spring '10 term at Virtual University of Pakistan.

Page1 / 29

WDD_lec_05 - Web Design & Development Lecture 5 Common...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online