Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Sybex 816 Java OCP 11 Programmer II Study Guide page 148 very minor typo

 
Ranch Hand
Posts: 385
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(Yes, I did check the Errata.)
The syntax for introducing a generic is to declare a formal type parameter in is angle brackets.
 
Marshal
Posts: 70636
288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did the book say?
 
Ranch Hand
Posts: 227
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:What did the book say?


The book says: "The syntax for introducing a generic is to declare a formal type parameter in angle brackets."

Nothing wrong with the sentence. The format type parameter must be in angle brackets.
 
Campbell Ritchie
Marshal
Posts: 70636
288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Edmund Yong wrote:. . . Nothing wrong with the sentence. . . .

Agree; it's all right.
 
Charles O'Leary
Ranch Hand
Posts: 385
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell and Edmund,

You are correct.  I was thinking of the diamond operator without the formal type parameter, but that would not make sense in this context.  (I'm up against the Oct 1 clock.  Maybe this is a sign to wait for 819   )  Sorry.

Thanks!    
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic