Types for Julias
The Julia type system organises values into a hierarchy of abstract and concrete types, and multiple dispatch chooses which method to run based on the types of all arguments. This unit in the Language stage covers structs, parametric types and method definitions, which are the foundation of how Julia libraries are designed.
Stage: Language · Part of the Julia roadmap · Last reviewed 19 November 2026
What to learn in Types
- Define an immutable struct and a mutable struct and explain the difference
- Write several methods of one function that dispatch on argument types
- Create a parametric type such as Point{T} with a type parameter
- Navigate the type tree using supertype, subtypes and isa
- Explain why abstract types cannot be instantiated
Types interview questions
What is multiple dispatch in Julia?
Multiple dispatch selects the method to call using the runtime types of all arguments, not just the first one as in typical object-oriented languages. It lets you add new behaviour for existing functions and new types without modifying either, which is why Julia packages combine well.
What is the difference between an abstract and a concrete type?
Concrete types such as Float64 or a struct can have values and have a fixed memory layout. Abstract types such as Number only sit in the hierarchy to group related types and to write general method signatures. You cannot create instances of them.
Where Types fits in the Julia roadmap
Types belongs to the Language stage (beginner level), which takes about 20 hours. Core Julia.
Other units in this stage
Back to the full Julia roadmap