Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ AWS Certified Developer - Associate
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Meditation Personal Transformation Life Purpose Emotional Intelligence CBT
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
Microsoft Power BI SQL Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Data Science
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
2021-02-17 16:59:07
30-Day Money-Back Guarantee
Development Programming Languages Java

A Guide to Understand Java Generics with Examples

With Simple Examples Step by Step
Highest Rated
Rating: 4.7 out of 54.7 (19 ratings)
11,389 students
Created by Arun Ammasai
Last updated 2/2021
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Guide to Understand Generics with Examples

Course content

5 sections • 31 lectures • 2h 53m total length

  • Preview02:25

  • Java Generics Overview
    03:05
  • Example to Understand the power of generics
    09:29
  • Preview03:04
  • Arrays vs Collection vs Generics Example
    11:37
  • Why we need generics
    02:18
  • Generic Class Syntax Introduction
    02:01
  • Generic Class Example Part1
    05:54
  • Generic Class Example Part2
    08:33
  • Generics Naming Conventions
    03:17
  • Preview06:32
  • Type Inference in Java with Generics
    07:26
  • Generic Method Introduction
    02:03
  • Generic Method With Void Example
    06:47
  • Generic Method With Return Example
    05:55
  • Raw Type Generic Example
    06:43

  • Upper Bound Generic Introduction
    01:46
  • Preview11:32
  • Multiple UpperBound Example
    05:52
  • Upper Bound Wildcard Introduction
    01:53
  • Upper Bound Wildcard Example1
    08:45
  • Upper Bound Wildcard Example2
    09:40
  • Upper Bound Restriction
    02:09
  • Lower Bound Example Introduction
    05:29
  • Lower Bound Example
    08:04
  • UnBounded Wildcard Example
    08:56

  • Type Erasure Introduction
    01:40
  • Type Erasure With Object Example
    04:24
  • Type Erasure with Bounded Example
    05:28
  • Restriction With Generics in Java
    08:50

  • Thank you !!!
    01:29

Requirements

  • Before you start doing practice with various types of examples given in this reference, I'm making an assumption that you are already aware of basic Java Programming.

Description

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.

Who this course is for:

  • This reference has been prepared for the beginners to help them understand the basic functionality related to functionality available in Java Generics.

Instructor

Arun Ammasai
Teach with passion, from experience, and with an easy-to-understand way of teaching
Arun Ammasai
  • 4.1 Instructor Rating
  • 1,730 Reviews
  • 151,602 Students
  • 16 Courses

Arun , Working as a Software Professional and having 10+ years of Industry experience in IT. I love to teach and its my passion. Interested in Java, Python ,Oracle and Open source technologies like PHP , WordPress.

Graduated in bachelor of Chemistry and master degree in Computer Application at Bharathiar University. 

I love photography, trekking and passion to travel to different place.

"Learn whatever comes in your way"

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.