StaticPL/JAVA
-
Difference between Abstract Class and InterfaceStaticPL/JAVA 2019. 8. 18. 20:24
1. Overview Clarifying differences between abstract class and interface. 2. Difference between Abstract Class and Interface Features Abstract Class Interface Type of methods Abstract, non-abstract Abstract, default, static methods Type of variables Final, non-final, static, non-static Final, static Implementation Able to implement interfaces, able to extend another class Only extends Interfaces ..
-
JAVA Collection FrameworkStaticPL/JAVA 2019. 8. 18. 20:18
1. Collection 3. List: interface List is a fundamental and widely-used collection type in the Java Collections Framework. Basically, a list collection stores elements by insertion order (either at the end or at a specific position in the list). A list maintains indices of its elements so it allows adding, retrieving, modifying, removing elements by an integer index (zero-based index; the first e..
-
String, Char, StringBuilder, and StringBufferStaticPL/JAVA 2019. 8. 18. 20:16
1. Overview Finding Different between String and Char. Check each role on JAVA. 3. Description 3.1 String It's a Class having a class member of final char[] in it. It has String Pool in JVM for caching literal reference of instance. but generated separate reference on the pool if instances are created using new keyword each time. It's immutable like the final instance. So before JDK 1.5, if some..
-
hashcode and equalsStaticPL/JAVA 2019. 8. 18. 20:15
1. Overview Stands for hashing algorithms to search efficiently used in HashMap, HashSet, and so on. Searching element within collection using hash code as address. 2. Procedure 3. Terminology 3.1 Uniqueness The same Objects which are true on equal() respectively must generate the same hash code. Different Object prefers to generate different hash code for performance of searching, but shouldn't..