- An enum may NOT be declared in a method
- An enum can be imported
- If the JVM has a choice, it will select a method without varargs before selecting a method with varargs
- When enums are equal, both .equals and == always return true
- The headMap() method returns the portion of the map whose keys are less than the key sent to it
- The asList() method of Arrays creates a fixed-size list that is backed by the array, so no additions are possible.
- A static initialization block is a normal block of code enclosed in braces, { }, and preceded by the static keyword. Used to initialize class variables
- All enums implicitly extend java.lang.Enum.
- A class can extend only one other class, an interface can extend any number of interfaces
- An interface might also contain constant definitions.
- An abstract class that implements an interface may not implement all interface methods
From: http://sitestree.com/?p=4872
Categories:Java Short Notes, SCJP
Tags:
Post Data:2012-12-07 07:48:57
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada