Misconception: Students think that an interface in Java is the same thing as a user interface.

  • To combat this misconception, provide students with examples of Java interfaces in action to make sure they understand their purpose.
    • Make sure students know that an interface is a collection of abstract methods.
  • When students are writing code, ask them if they think using an interface would be more or less efficient.
  • Note from the CS Teaching Tips Team: For some detailed explanations and examples of interfaces to show your students, see this Java Interfaces tutorial.

More about this tip

External Source
Interview with Chinma Uche