Please enable JavaScript.
Coggle requires JavaScript to display documents.
JAVA - Coggle Diagram
JAVA
-
Conversion of type
Digit to char
Character.forDigit(digit,10)
-
-
-
If you change the reference type of the object to its superclass or interface you can only use those methods that are defined in the superclass or the interface whihc you have overidden or you have implemented WHere Might we use this
Miscellaneous
-
-
any decimal number is by default treated as a double not a float And any non deciimal number by deafult is treated as int even if it overflows
-
Array
-
-
-
Array.deepEquals(arr1,arr2) if arrays of objects have to be comapred and we want that obj with different instances to be equal if they have same data inside
-
-
-
-
-
Wierd
If we define new variables in if then else statement dont work rather need to declare before and assign in the if then else
-
-
-
-
-
Switch
Note break is likea seperator between cases(door) if we dont use break anywhere then as soon as we open one gate all the gates below it we also can open or reach which means if a cases condition is met then the code in that case and in all the cases below it wil execute even if those cases are not true
-
-
Scope of variables
While you declare a variable in a method, the variable can only be accessed in the method.
-
-
-
-
-