Sorry, your browser is not supported
To have the best experience using Skillshare, we recommend that you use one of these supported browsers.

Core Java Development Course for Beginners - Part 9 - Enum

Udayan Khattry, SCJP, SCWCD & Oracle Database SQL Certif

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
5 Videos (52m)
    • Introduction to Enums

      10:42
    • Constructors Variables Methods

      10:15
    • Enum and switch case block

      9:21
    • valueOf ordinal compareTo

      12:26
    • Override Enum Methods

      9:00

About This Class

5c3c5f42

This course is for anyone who wants to learn Java from scratch, polish java skills, face java interviews and prepare for java certifications.

Anyone can take this course and go from 0 developments skills to being expert in OOPs and core Java.
Java is the most popular language world wide and technologies like Servlets & JSP, J2EE, Struts, Spring, Hibernate, JMS or android for mobile applications are all based on core Java. 
Even Kotlin (android's new programming language) becomes easier if you know Java.

Having a sound understanding of core java concepts is necessary, if you want to learn advance concepts, frameworks and android programming.

Following Lectures are covered in Part-9

 

1.            Introduction to Enums

In this lecture you will learn:

  • What are enums and why enums were added in Java?
  • Limitations of using String constant variables for fixed set of values.
  • The syntax of Java enum.
  • Similarities and differences between enums and java classes.
  • What is java.lang.Enum class?
  • Eclipse IDE shortcut to change the selected text's case (upper or lower).

2.            Enums: Constructors, instance variables and methods

In this lecture you will learn:

  • Why variables, constructors and methods are needed in the Enum code?
  • How to define variables, constructors and methods in the Enum code?
  • Code to invoke the parameterized constructor of an Enum.
  • When does java runtime invoke the constructor of an Enum?
  • How to invoke methods defined in an Enum?
  • Static values() method of Enums.
  • Benefits of enums over static final variables.

3.            Enum and switch-case block

In this lecture you will learn:

  • How to associate multiple values with Enum constants?
  • switch-case syntax for Enums.
  • Two ways to declare Enums.
  • When to use full name and when to use shorthand notation to access Enum constants?
  • Benefits of enums over static final variables.

4.            Enum: valueOf, ordinal and compareTo methods

In this lecture you will learn:

  • Working of static valueOf(String) method.
  • How to check the details of values() and valueOf(String) methods using Javadoc?
  • How Enum constants are declared internally?
  • What is ordinal value?
  • Three ways to check for the equality of Enum constants.
  • Working of instance methods: ordinal() and compareTo().

5.            Override Enum methods

In this lecture you will learn:

  • Why it is needed to override Enum methods?
  • Syntax to override Enum methods.
  • Constant specific class body and its use.

2

Students

--

Projects

0

Reviews (0)

Udayan Khattry

SCJP, SCWCD & Oracle Database SQL Certif

Hi, I'm Udayan. I have a master's degree in Computer Applications from Symbiosis International University, Pune, India and have completed following professional certifications:
- SCJP 1.6 (Sun Certified Programmer for J2SE 6.0)
- SCWCD 1.5 (Sun Certified Web Component Developer)
- Oracle Database SQL Certified Expert

After working as a software developer and consultant for over 9 years for various companies in India, Dubai & Singapore, I decided to follow my lifelong passion ...

See full profile