??: ??? ??? ???? ???? ???? ??? ??? ? ????.
?? ????? ??: ? ? ???? ?? ?????? ??? ?? ?? ????? ?????.
??? ????: ??? ??? ?? ? ??? ?????? ????? ?????.
?? ???? ?? ??
??? ??? ???? JDK 8?? ???? ?? ??(::)?? ?????.
?? ??? ???? ?? ??? ??? ? ????.
?? ??? ?? ?
??? ?????:
??: IntPredicate
???: test(int ?)
????: ??.
??: ??(?? ?? ?? ?? ???).????:
??: MyIntPredicates
??? ?? ???:
isPrime(): ??? ???? ?????.
isEven(): ??? ???? ?????.
isPositive(): ??? ???? ?????.?? ??:
??: numTest()
????:
IntPredicate.
?????? ?? ?? ??? ?? ?????.??:
main() ?????? numTest()? ???? ? ?? ???? ?????.
? ????? ?? ??? ??(isPrime, isEven, isPositive)? ?? ??? ?????.
// ?? ???? ?? ??? ?????.
//
? ???? ?? ??? ?? ??? ?????
// ?? ?.
????? IntPredicate {
?? ???(int n);
}
// ? ???? ??? ???? ? ?? ?? ???? ?????
// ?? ??? ????.
??? MyIntPredicates {
// ??? ??? ? true? ???? ?? ??????.
static boolean isPrime(int n) {
if(n
for(int i=2; i <= n/i; i ) {
if((n % i) == 0)
false? ?????.
}
true? ?????.
}
// ??? ? true? ???? ?? ??????.
?? ?? isEven(int n) {
?? (n % 2) == 0;
}
// ??? ??? ? true? ???? ?? ??????.
static boolean isPositive(int n) {
n > 0;
}
}
??? MethodRefDemo {
// ? ???? ?? ???? ??? ?????? ????
// ? ?? ????. ???
? ?? ????? ??? ? ????.
// ??? ?????? ???? ? ?????? ?? ????
// ??? ???
static boolean numTest(IntPredicate p, int v) {
return p.test(v);
}
?? ?? ?? ??(??? ??[])
{
?? ??;
// ???? isPrime ???? ?? ??? numTest()? ?????.
?? = numTest(MyIntPredicates::isPrime, 17);
if(result) System.out.println("17? ?????.");
// ?? ?? isEven ???? ?? ??? ?????.
?? = numTest(MyIntPredicates::isEven, 12);
if(result) System.out.println("12? ?????.");
// ?? isPositive ???? ?? ??? ?????.
?? = numTest(MyIntPredicates::isPositive, 11);
if(result) System.out.println("11? ?????.");
}
}
?? ??? isPrime()? ?? ??? numTest() ???? ??? ?????.
isPrime() ???? IntPredicate ?? ?????? ?????.
MyIntPredicates::isPrime ???? isPrime()? IntPredicate? test() ???? ???? ??? ?????.
numTest()? ?? ?? ??? ??? ??? ? ?? ??? ????.
?? ?? test(int n)? ?? ?? ???? IntPredicate ?????? ?? ??? ??? ? ????.
? ??? ??? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ?? ?? ??? ??? ?? ??? ??, ? ? ?? ? ??? ?????. 1. ??? ?? ???? ?? ???? ???-????, ? ??? ??? ??? ? ????, Hashmap? ???-??? ?? ??? ??? ???? ????. 2. NULL ? ?? ???? HashMap? ??? NULL ?? ?? ? ?? ???? ?? HashTable? NULL ?? ?? ???? ??? NullPointerException? ?????. 3. ????? ??? ????? ?? ??? ?? ?? ? ????? HashTable? ? ??? ?? ?? ??? ????. ?? ConcurrenTashMap? ???? ?? ????.

Java? ?? ??? ??? ?? ??? ??? ?? ??? ??? ?? ??? ?? ?? ??? ???? ??? ?? ???? ?????. 1. ??? ???? ??? ?? ?? ? ???? ?? ??? ???? ?? ?? ??? ? ????. 2. ???? ?? ??? ???? ??? ?? ???? ?? ?? ??? ???????. 3. ?? ???? ?? ?? ?? ? ???? ???? ?? NULL ?? ??? ? ????. 4. ?? ???? ??? ?? ?? ? ??? ?????? ?? ??? ??? ?? ?? ??? ????? ??? ??? ??? ??????? ?? ???? ??????.

staticmethodsininterfaceswereIntRectionSelffacesswithinteffaceswithinteffaceswithintintinjava8toallowutilityFunctionswithinterfaceitswithinteffaceswithinterfaceffaces

JIT ????? ??? ???, ??? ?? ? ???, ?? ?? ? ???? ? ? ?? ?? ??? ? ?? ??? ?? ??? ??????. 1. ??? ???? ?? ?? ??? ??? ?? ?? ???? ??? ?? ?????. 2. ??? ?? ? ??? ?? ?? ? ??? ???? ?? ?? ???; 3. ?? ??? ??? ?? ??? ???? ???? ???? ? ?? ?? ??? ?????. 4. ?? ??? ?? ??? ??? ???? ???? ?? ? ??? ???? ?? ??? ?????.

???? ??? ??? Java?? ??? ?? ???? ??? ?? ? ? ??? ??? ???? ? ?????. ?? ???? ??? ??, ??? ?? ??? ?? ?? ??? ??? ????? ???? ????? ?????. ?? ??? ??? ??, ????? ? ??? ????, ?? ??? ??? ?????? ? ?? ? ?? ?????.

injava, thefinalkeywordpreventsavariable'svalue'svalueffrombeingchangedafterassignment, butitsbehaviordiffersforprimitivesandobjectreences.forprimitivevariables, asinfinalintmax_speed = 100; wherereassoncesanerror.forobjectref

??? ??? ?? ?? ??? ????? ? ???? ????? ???? ?? ???? ?? ???? ?????. ?? ??? ??? ????. ?? ?? ?? ??? ???? ???? ?? ?? ??? ??? ?? ?? ??? ??? ?????. ?? ??? ??? ????. ?? ??? ?? ??? ?? ?? ??? ?? ?? ??? ???? NewClass ()? ??? ?? ???? ????. ?? ??? ?? ??? ???? ?? ??? ?? ? ? ??? ?? ?? ??? ????? ????? ?????. ?? ??, ?? ?????? ?????, ??? ? ?? ????? ??? ?? ?????. ???? ?? ?? ??? ???? ?? ???? ?? ? ??? ???? ?? ??? ?? ?????? ?????. ???? ???? ??? ??, ?? ?? ? ?? ??? ????, ?? ?? ???? ?????.

??? ? ?? ??? ???? : ????? ?? ?. 1. int? ???? ???? ?? ?? ?? ? ??? ???? ?????. 2. ?? ? ???? (int) myDouble ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.
