The Artima Developer Community
Sponsored Link

Java Buzz Forum
Type dependency in Java, Part 1

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
News Manager

Posts: 47623
Nickname: newsman
Registered: Apr, 2003

News Manager is the force behind the news at Artima.com.
Type dependency in Java, Part 1 Posted: Mar 2, 2017 2:27 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by News Manager.
Original Post: Type dependency in Java, Part 1
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
Latest Java Buzz Posts
Latest Java Buzz Posts by News Manager
Latest Posts From JavaWorld

Advertisement

Understanding type compatibility is fundamental to writing good Java programs, but the interplay of variances between Java language elements can seem highly academic to the uninitiated. This article is for software developers ready to tackle the challenge! Part 1 reveals the covariant and contravariant relationships between simpler elements such as array types and generic types, as well as the special Java language element, the wildcard. Part 2 explores type dependency and variance in common API examples and in lambda expressions.

download
Get the source code for this article, "Type dependency in Java, Part 1." Created for JavaWorld by Dr. Andreas Solymosi.

Concepts and terminology

Before we get into the relationships of covariance and contravariance among various Java language elements, let's be sure that we have a shared conceptual framework.

To read this article in full or to leave a comment, please click here

Read: Type dependency in Java, Part 1

Topic: How to Unit Test Your Confluence Add-on Previous Topic   Next Topic Topic: Java Annotated Monthly – March 2017

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use