You are not logged in. Lock_open    

Browse tutorials by Category - Compile Error

Illegal start of type (Command Line) Time: 1:42 Gb
Average:
  • Currently 3.1/5 Stars from 152 ratings
  •  
  •  
  •  
  •  
  •  
152 ratings
Your Rating:
  • Currently 0.0/5 Stars from 152 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Compile Error Command Line
Description: click for more...

A program that generates “illegal start of type” and “ expected” error although the code looks OK.

Incompatible Types (Command Line) Time: 1:33 Gb
Average:
  • Currently 3.1/5 Stars from 182 ratings
  •  
  •  
  •  
  •  
  •  
182 ratings
Your Rating:
  • Currently 0.0/5 Stars from 182 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Conditional Compile Error Loop Command Line
Description: click for more...

What to do when you see an incompatible types compiler error in a loop condition or in the condition of an if statement.

Shows the effect of using equals (=) instead of equalsequals (==), causing an assignment when you intend to have a equality comparison.

Incompatible Types (Eclipse) Time: 1:05 Gb
Average:
  • Currently 2.9/5 Stars from 190 ratings
  •  
  •  
  •  
  •  
  •  
190 ratings
Your Rating:
  • Currently 0.0/5 Stars from 190 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Conditional Compile Error Loop Eclipse
Description: click for more...

What to do when you see an incompatible types compiler error in a loop condition or in the condition of an if statement.

Shows the effect of using equals (=) instead of equalsequals (==), causing an assignment when you intend to have a equality comparison.

Missing Semicolon ; (BlueJ) Time: 5:28 Gb
Average:
  • Currently 3.0/5 Stars from 160 ratings
  •  
  •  
  •  
  •  
  •  
160 ratings
Your Rating:
  • Currently 0.0/5 Stars from 160 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Compile Error Logic Error BlueJ
Description: click for more...

Small method demonstrating syntax error caused by a missing semi-colon.

Not a Statement, Cannot Find Symbol (Command Line) Time: 2:28 Gb
Average:
  • Currently 3.0/5 Stars from 140 ratings
  •  
  •  
  •  
  •  
  •  
140 ratings
Your Rating:
  • Currently 0.0/5 Stars from 140 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Compile Error Command Line
Description: click for more...

Demonstrates 3 compiler errors; “not a statement”, “cannot find symbol” and “cannot be applied.”

Object Comparison (Eclipse) Time: 4:15 Gb
Average:
  • Currently 3.1/5 Stars from 154 ratings
  •  
  •  
  •  
  •  
  •  
154 ratings
Your Rating:
  • Currently 0.0/5 Stars from 154 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Conditional Compile Error Eclipse
Description: click for more...

Demonstrates the use of .equals (dot equals) to compare objects rather than == (Equals equals). The same equality comparison that works for primitives does not work for object types.

Semi-colon expected (BlueJ) Time: 1:53 Gb
Average:
  • Currently 3.1/5 Stars from 162 ratings
  •  
  •  
  •  
  •  
  •  
162 ratings
Your Rating:
  • Currently 0.0/5 Stars from 162 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Compile Error BlueJ
Description: click for more...

This video demonstrates how to deal with a compiler error that does not seem to make sense. BlueJ shows a semi-colon expected error, but on a line number with a semi-colon.

Static Context (Command Line) Time: 9:02 Gb
Average:
  • Currently 3.0/5 Stars from 155 ratings
  •  
  •  
  •  
  •  
  •  
155 ratings
Your Rating:
  • Currently 0.0/5 Stars from 155 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Compile Error Logic Error Classes Command Line
Description: click for more...

The compiler generates a “non-static method X cannot be referenced from a static context” message. Shows what happens when a non-static method is called form the static main method.

Unreported Exception (Command Line) Time: 3:20 Gb
Average:
  • Currently 3.0/5 Stars from 140 ratings
  •  
  •  
  •  
  •  
  •  
140 ratings
Your Rating:
  • Currently 0.0/5 Stars from 140 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Compile Error Logic Error Command Line
Description: click for more...

The compiler reports an “unsupported exception” and that it “must be caught or declared to be thrown.”