- How to use generics to avoid runtime errors.
- More Generics
- Class casting in Java: How to avoid runtime exception - ClassCastException: overloading, overriding, variable and method hiding
- Java HotSpot virtual machine
- What Java Technology can do?
- Offers from Java Technology
- Java:Common Problems (and Their Solutions)
- Benefits of OOP: Modularity, Information-hiding, Code re-use, Pluggability and debugging ease
- Object oriented concepts in Java
- Variable Naming Conventions in Java
- Java Primitive Data Types
- Java : Arrays: System.arraycopy method
- Java Operators: Carefully look about precedence
- continue and break statements in Java
- Annotations in Java
- Passing Parameters, System.out.printf, Shadowing Variables
- The Garbage Collector
- You can use interface names as return types. The object returned must implement the specified interface.
- when a class name is used as a return type, the returned object must be either a subclass of, or the exact class of, the return type
- Controlling Access to Members of a Class
- Java initializing variables: initialize at declarations, Static Initialization Blocks, private static method to initialize, Initializer blocks for instance variables, A final method for initialization
- Nested Classes
- enum in Java: enums implicitly extend java.lang.Enum. An enum cannot extend anything else. Enums can have methods like classes
- if a variable is declared to be the type of an interface, its value can reference any object that is instantiated from any class that implements the interface
- Interfaces provide an alternative to multiple inheritance
- Java Interfaces
- Rewriting Interfaces
- Covariant return type: An overriding method can return a subtype of the type returned by the overridden method
- The access modifier for an overriding method can allow more, but not less, access than the overridden method
- Hiding fields makes code difficult to read
- java.lang.Object as a super class
- final methods can not be overridden, final classes can not be sub-classed, methods called from constructors should generally be declared final (otherwise, a different implementation of the method in subclasses may create unwanted results)
- Interfaces can not have static or final methods
- System.out.format(.....) and String.format() can be used as alternatives to System.out.println()
- Using Number class vs. primitive data types
- String, StringBuilder, StringBuffer: StringBuilder has capacity(), reverse() methods that String does not have. StringBuffer = StringBuilder but StringBuffer is thread-safe i.e. synchronized. String, and StringBuilder can be converted to each other
- Three kinds of exceptions
- Chained Exceptions: Stack Trace: Logging
From: http://sitestree.com/?p=4876
Categories:Java Short Notes, SCJP
Tags:
Post Data:2008-03-19 18:31:53
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