- 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.
推薦閱讀
- 一步一步學Spring Boot 2:微服務項目實戰
- C語言程序設計(第3版)
- 深入淺出Java虛擬機:JVM原理與實戰
- Python測試開發入門與實踐
- DevOps Automation Cookbook
- Python完全自學教程
- 嵌入式C編程實戰
- 體驗之道:從需求到實踐的用戶體驗實戰
- Mastering ArcGIS Server Development with JavaScript
- HTML5 Canvas核心技術:圖形、動畫與游戲開發
- Flutter從0基礎到App上線
- 美麗洞察力:從化妝品行業看顧客需求洞察
- Isomorphic JavaScript Web Development
- C#入門經典(第7版):C# 6.0 & Visual Studio 2015(.NET開發經典名著)
- 數據庫技術及應用(Access)(第2版)