JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • The concept of an interface, declaration syntax

    JAVA 25 SELF
    20 level,0 lecture
    In this lecture you will learn what an interface is in Java, how to declare it using the interface keyword, how classes implement the contract via implements, and why methods are considered public abstract by default. We will examine how an interface differs from a class, examples from the JDK ( Comparable, Runnable, Serializable), a visual diagram, and common mistakes.
    Open
  • The difference between interfaces and abstract classes

    JAVA 25 SELF
    20 level,1 lecture
    In this lecture, we’ll compare interfaces and abstract classes in Java: when to choose which, how they differ in capabilities and limitations, what their signatures look like ( abstract class and interface), what modifiers like public, abstract, static mean, and we’ll also look at examples from the JDK, practical cases, and common mistakes (inheritance, implementation, using implements/ extends).
    Open
  • Implementing multiple interfaces

    JAVA 25 SELF
    20 level,2 lecture
    In this lecture, we look at how a single class in Java can implement several interfaces at once: the syntax with the implements keyword, combining roles (for example, Movable, Attackable, Serializable), matching method signatures, the absence of the diamond problem, and what to do when default methods conflict. Practical examples and a breakdown of typical mistakes are provided.
    Open
  • Functional interfaces: @FunctionalInterface

    JAVA 25 SELF
    20 level,3 lecture
    In this lecture, we examine what a functional interface is (exactly one abstract method), how and why to mark it with the @FunctionalInterface annotation, what is allowed to be added to an interface via default and static methods, and how to use such interfaces in practice (regular classes and anonymous classes). Examples with Runnable, Comparator<T>, and interfaces from java.util.function are complemented by a table and an analysis of common mistakes.
    Open
  • Interfaces in Java Architecture, Design Patterns

    JAVA 25 SELF
    20 level,4 lecture
    How interfaces turn code into a flexible architecture: we program to abstractions, inject dependencies via DI, swap implementations in tests, and add new behaviors without changing the core (OCP). We break down how interfaces underpin the Observer, Strategy, and Command patterns, and show hands-on examples (UserRepository, NotificationSender, payment strategies).
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy