- Learning Scala Programming
- Vikash Sharma
- 79字
- 2021-06-30 19:07:51
Boolean
A Boolean represents two values: true and false. As expected, it implements Boolean arithmetic methods such as and, or, strict and, strict or, equality, inequality, and negation in the form of &&, ||, &, |, ==, !=, and unary_! respectively. Boolean also implements equals, hashCode, and toString from the class Any.
The equals method checks for argument evaluation and returns its result, while hashCode returns a fixed implementation-specific hash code based on value true or false.
推薦閱讀
- Java應用與實戰
- CockroachDB權威指南
- Getting Started with PowerShell
- PHP 編程從入門到實踐
- SQL Server 2012數據庫管理與開發項目教程
- 深入淺出RxJS
- Python機器學習編程與實戰
- Learning OpenStack Networking(Neutron)
- SpringBoot從零開始學(視頻教學版)
- Oracle Database XE 11gR2 Jump Start Guide
- 零基礎學編程系列(全5冊)
- Java語言程序設計實用教程(第2版)
- 測試工程師Python開發實戰
- ASP.NET Core 2 High Performance(Second Edition)
- KnockoutJS Blueprints