Skip to main content
  • Book
  • © 2018

Scala for Java Developers

A Practical Primer

Apress

Authors:

  • Learn how to transition from Java to Scala, including converting and managing your codebase
  • Leverage your existing knowledge of Java to master Scala
  • Gain insight into functional programming concepts and idioms

Buy it now

Buying options

eBook USD 24.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 32.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (24 chapters)

  1. Front Matter

    Pages i-xxi
  2. Scala Tour

    1. Front Matter

      Pages 1-1
    2. The Scala Language

      • Toby Weston
      Pages 3-5
    3. Installing Scala

      • Toby Weston
      Pages 7-10
    4. Some Basic Syntax

      • Toby Weston
      Pages 11-19
    5. Scala’s Class Hierarchy

      • Toby Weston
      Pages 21-27
    6. ScalaDoc

      • Toby Weston
      Pages 29-31
    7. Language Features

      • Toby Weston
      Pages 33-36
    8. Summary

      • Toby Weston
      Pages 37-38
  3. Key Syntactical Differences

    1. Front Matter

      Pages 39-41
    2. Classes and Fields

      • Toby Weston
      Pages 43-52
    3. Classes and Objects

      • Toby Weston
      Pages 53-65
    4. Classes and Functions

      • Toby Weston
      Pages 67-78
    5. Inheritance

      • Toby Weston
      Pages 79-103
    6. Control Structures

      • Toby Weston
      Pages 105-119
    7. Generics

      • Toby Weston
      Pages 121-140
  4. Beyond Java to Scala

    1. Front Matter

      Pages 141-142
    2. Faking Function Calls

      • Toby Weston
      Pages 143-148
    3. Faking Language Constructs

      • Toby Weston
      Pages 149-158
    4. Pattern Matching

      • Toby Weston
      Pages 159-169

About this book

Master the fundamentals of Scala and understand its emphasis on functional programming that sets it apart from Java. This book will help you translate what you already know in Java to Scala to start your functional programming journey. Learn Scala is split into four parts: a tour of Scala, a comparison between Java and Scala, Scala-specific features and functional programming idioms, and finally a discussion about adopting Scala in existing Java teams and legacy projects.

After reading and using this tutorial, you'll come away with the skills in Scala to kick-start your productivity with this growing popular language. 


What You'll Learn

  • Tour Scala and learn the basic syntax, constructs, and how to use the REPL
  • Translate Java syntax that you already know into Scala
  • Learn what Scala offers over and above Java
  • Become familiar with functional programming concepts and idioms
  • Gaintips and advice useful when transitioning existing Java projects to Scala

 

Who This Book Is For

Java developers looking to transition to Scala. No prior experience necessary in Scala.

 

Reviews

“The book is written in an accessible style, with numerous examples, and is suitable for a wide range of audiences from novices, just starting to learn how to handle a programming language, to experts trying to get to grips with Scala. The continuous parallel between Scala and Java is used to highlight an interesting angle in both languages, so, technically, the book can be used as a guide to both Java and Scala.” (Irina Ioana Mohorianu, zbMATH 1382.68005, 2018)

Authors and Affiliations

  • London, United Kingdom

    Toby Weston

About the author

Toby Weston is an independent consultant based in London. He specializes in agile enablement, training and modern software development.  For more, visit www-dot-baddotrobot-dot-com.

Bibliographic Information

Buy it now

Buying options

eBook USD 24.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 32.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access