Android
-
java.lang.NoClassDefFoundError: org/jetbrains/kotlin/cli/common/PropertiesKtAndroid 2020. 10. 6. 19:06
* What went wrong: org/jetbrains/kotlin/cli/common/PropertiesKt I have this issue in android studio 4.2 canary 13 It looks that the issue on JDK -> When I switch to another JDK version(JDK 8 in my case), the issue is gone
-
default 메소드 & static 메소드 in JAVA 8Android 2020. 10. 5. 17:39
default메소드 인터페이스가 default키워드로 선언되면 메소드가 구현될 수 있다. 또한 이를 구현하는 클래스는 default메소드를 오버라이딩 할 수 있다. public interface Calculator { public int plus(int i, int j); public int multiple(int i, int j); default int exec(int i, int j){ //default로 선언함으로 메소드를 구현할 수 있다. return i + j; } } //Calculator인터페이스를 구현한 MyCalculator클래스 public class MyCalculator implements Calculator { @Override public int plus(int i, int j)..