Udemy

A Guide to Understand Java Generics with Examples

立即報名
  • 11,532 名學生
  • 更新於 2/2021
4.5
(62 個評分)
CTgoodjobs 嚴選優質課程,為職場人士提升競爭力。透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期
全年招生
課程級別
學習模式
修業期
2 小時 53 分鐘
教學語言
英語
授課導師
Arun Ammasai
評分
4.5
(62 個評分)
9次瀏覽

課程簡介

A Guide to Understand Java Generics with Examples

With Simple Examples Step by Step

Java Generics

Java Generic methods and generic classes enable programmers to specify, with a single method declaration, a set of related methods, or with a single class declaration, a set of related types, respectively. Generics also provide compile-time type safety that allows programmers to catch invalid types at compile time. This reference will take you through simple and practical methods using Java Generics.

The Java Generics programming is introduced in J2SE 5 to deal with type-safe objects. It makes the code stable by detecting the bugs at compile time.

Before generics, we can store any type of objects in the collection, i.e., non-generic. Now generics force the java programmer to store a specific type of objects.

It would be nice if we could write a single sort method that could sort the elements in an Integer array, a String array, or an array of any type that supports ordering.

Java Generic methods and generic classes enable programmers to specify, with a single method declaration, a set of related methods, or with a single class declaration, a set of related types, respectively.

Generics also provide compile-time type safety that allows programmers to catch invalid types at compile time.

Using Java Generic concept, we might write a generic method for sorting an array of objects, then invoke the generic method with Integer arrays, Double arrays, String arrays and so on, to sort the array elements.

課程章節

  • 5 個章節
  • 31 堂課
  • 第 1 章 Introduction
  • 第 2 章 Java Generics Concepts
  • 第 3 章 Java Generic Bounds
  • 第 4 章 Type Erasure in Generics
  • 第 5 章 Thanks

課程內容

  • Guide to Understand Generics with Examples

此課程所涵蓋的技能


評價

  • R
    Richard Sobota
    4.0

    Good introduction to generics. I'm giving four stars because of few mistakes in examples in videos. IMHO, it would be better to try and test examples before recording.

  • A
    Arnold Kalema
    5.0

    Great training, I highly appreciate and recommend this course.

  • A
    Alok Sachan
    5.0

    Great course for beginners

  • D
    Donny Lobree
    5.0

    Patient, thorough and complete coverage of generics. This is an excellent supplement to anyone's study of Generics. I was stuck in my college course when this subject was covered, but now I'm unstuck. Thank you!

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策使用條款才繼續瀏覽。

我已閱讀及同意