????? ???? Amazon?? ? ?? ??? ??? ????. Medium?? ?? ????? ??? ???? ?? ?? ???. ?????! ??? ??? ??? ?????!
Java? ????? ??? ???? ?? ??????? ???? ?? ??? ??? ?????. ????? ??? ? ?? ? ???? ? ?? 5?? ?? ??? ?? ???????.
??? ??? ?? ?? ?? ????? ??? ?? ?????? ??? ??? ????. java.util.concurrent.atomic ???? ???? ???? ??? ?? ?????? ??? ?? ????? ??? ????? ??? ? ????. ?? ?? ???????.
import java.util.concurrent.atomic.AtomicInteger; public class AtomicCounter { private AtomicInteger count = new AtomicInteger(0); public void increment() { count.incrementAndGet(); } public int get() { return count.get(); } }
? AtomicCounter ???? AtomicInteger? ???? ???? ??? ?? ?????? ??? ??? ?????. incrementAndGet() ???? ? ?? ???? ???? ????? ????? ? ?? ?????.
??? ?? ????? ???? ????? ? ?? ??? ?????. ThreadLocal? ???? ?? ???? ??? ??? ???? ?? ??? ???? ??? ??? ??? ???? ? ????. ?? ??? ????.
public class ThreadLocalExample { private static final ThreadLocal<SimpleDateFormat> dateFormatter = new ThreadLocal<SimpleDateFormat>() { @Override protected SimpleDateFormat initialValue() { return new SimpleDateFormat("yyyy-MM-dd"); } }; public String formatDate(Date date) { return dateFormatter.get().format(date); } }
? ???? ??? ?? SimpleDateFormat ????? ?????. ? ???? ?? ??? ???? ????? ?? ??? ??? ? ???? ??? ????.
Executor ?????? ???? ??? ??? ?? ??? ?????. ExecutorService? ???? ??? ????? ??? ???? ?? ????? ????? ??? ?? ?? ??? ??? ? ????. ?? ??? ????.
import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ExecutorExample { public static void main(String[] args) { ExecutorService executor = Executors.newFixedThreadPool(5); for (int i = 0; i < 10; i++) { Runnable worker = new WorkerThread("" + i); executor.execute(worker); } executor.shutdown(); while (!executor.isTerminated()) { } System.out.println("All tasks completed"); } } class WorkerThread implements Runnable { private String command; public WorkerThread(String s) { this.command = s; } @Override public void run() { System.out.println(Thread.currentThread().getName() + " Start. Command = " + command); processCommand(); System.out.println(Thread.currentThread().getName() + " End."); } private void processCommand() { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } } }
? ???? 5?? ???? ?? ?? ??? ?? ??? ??? 10?? ??? ?????. ExecutorService? ??? ????? ?? ??? ????? ?????.
Phaser ???? ?? ?? ?? ?? ???? ???? ? ?? ??? ?? ??? ?????. ???? ???? ???? ?? ??? ??? ??????. ?? ??? ????.
import java.util.concurrent.Phaser; public class PhaserExample { public static void main(String[] args) { Phaser phaser = new Phaser(1); // "1" to register self // Create and start 3 threads for (int i = 0; i < 3; i++) { new Thread(new PhaserWorker(phaser)).start(); } // Wait for all threads to complete phase 1 phaser.arriveAndAwaitAdvance(); System.out.println("Phase 1 Complete"); // Wait for all threads to complete phase 2 phaser.arriveAndAwaitAdvance(); System.out.println("Phase 2 Complete"); phaser.arriveAndDeregister(); } } class PhaserWorker implements Runnable { private final Phaser phaser; PhaserWorker(Phaser phaser) { this.phaser = phaser; this.phaser.register(); } @Override public void run() { System.out.println(Thread.currentThread().getName() + " beginning Phase 1"); phaser.arriveAndAwaitAdvance(); System.out.println(Thread.currentThread().getName() + " beginning Phase 2"); phaser.arriveAndAwaitAdvance(); phaser.arriveAndDeregister(); } }
? ???? Phaser? ???? ? ?? ?? ??? ?? ? ?? ???? ?????. ? ???? ???? ???? ? ??? ?? ??? ??? ?? ??? ?????.
StampedLock? ??? ?? ??? ???? ?? ?? ??????, ????? ??? ???? ?? ???? ????? ??????. ?? ??? ????.
import java.util.concurrent.locks.StampedLock; public class StampedLockExample { private double x, y; private final StampedLock sl = new StampedLock(); void move(double deltaX, double deltaY) { long stamp = sl.writeLock(); try { x += deltaX; y += deltaY; } finally { sl.unlockWrite(stamp); } } double distanceFromOrigin() { long stamp = sl.tryOptimisticRead(); double currentX = x, currentY = y; if (!sl.validate(stamp)) { stamp = sl.readLock(); try { currentX = x; currentY = y; } finally { sl.unlockRead(stamp); } } return Math.sqrt(currentX * currentX + currentY * currentY); } }
? ???? StampedLock? ???? x ? y ??? ?? ???? ?????. move ???? ?? ??? ???? ??, distanceFromOrigin? ??? ??? ????, ??? ??? ???? ?? ?? ???? ?????.
??? ?? ????? ??? Java ????? ???, ??? ? ???? ??? ??????? ??? ? ?? ??? ??? ?????. ??? ??? ?????? ??? ?? ?????? ??? ?? ?? ????? ??? ? ????. ??? ?? ????? ???? ???? ?? ???? ???? ??? ???? ??? ??? ?? ? ????.
Executor ?????? ??? ??? ????? ??? ????? ??? ??? ???? ??? ? ?? ????. ? ?? ??? ?? ?? ??? ????? ???? ?? ?????? ?? ?????.
Phaser? ??? ?? ??? ?? ?? ???? ???? ?? ??? ??? ????? ?????. ?? ???? ??? ??? ?? ???? ??? ? ?? ?????? ?? ?????.
StampedLock? ??? ?? ?????? ??? ?? ???? ? ?? ??? ?? ??? ?????. ??? ???? ?? ?? ?? ??? ??? ??? ? ??? ???? ?? ???? ???? ?? ?? ? ????.
??? ??? ??? ?? ??????? ?? ?? ??? ??? ???? ?? ?????. ??? ?? ??? ??? ?? ???? ? ??? ???? ?????. ??? ??? ???? ?? ??????? ??????? ?? ??? ???? ?? ?????.
?? ?? ??? ??? ??? ?? ??????? ?? ??? ?????. ??? ?? ??????? ????? ?? ??? ??? ??? ??? ? ?? ??? ??? ? ????. ????? StampedLock? ??? ?? ??? ??? ? ??? ??? ReentrantReadWriteLock?? ???? ???? ?? ? ?????.
Executor ?????? ??? ?? ??????? ??? ??? ? ??? ???? ?????. ???? ?? ??? ??? ???? ??? ???? ?? ? ???, ???? ?? ??? ???? ??? ????? ??? ??? ? ????.
??? ?? ???? ????? ??? ???? ?????. ? ????? ??? ?? ??? ?? ???? ???? ??? ???? ??? ??? ??? ??? ? ????.
Phaser? ??? ? ??? ?? ???? ??? ??? ???? ??? ?? ??? ??? ? ??? ?? ?????. ??? ?? ???? ??? ????? ?? ???? ???? ??? ?????.
??? ??? ??? ? ???? ?? ???? ???? ?? ?? ???. ?? ??? ????? ???? ? ???, ??? ???? ?? ??? ??? ???? ? ??? ???. ??? ???? ?? jcstress? ?? ??? ??? ???.
??? ?? ????? ??? ??? ?? ????? ?? ??? Java ??????? ?? ? ??? ?? ?? ?????. ??? ???? ??? ??? ??? ?????. ??? ??? ???? ????? ???? ????. ?? ?????? ???? ??? ????? ??? ???? ?? ? ????.
?? ??? ?? ??? ???? ? ??? ??? ?? ?? ??? ??? ?????. ???? ?? ???? ????? ??? ?? ?? ??? ? ?? ?? ??? ??????. ??? ??? ??/?? ??? ??? ?? ?? ????? ??? ???? ??? ??? ???? ?? ???? ? ?????.
??? ??? ? ?? ???? ?? ??? ?????? ?? ???? ?? ?? ??? ???? ??? ? ?? ??? ?? ??????????. ??? Phaser ???? ???? ??? ??? ???? ? ?? ??? ?? ??? ???? ?? ?? ??? ???? ? ??? ????. ? ?? ??? ???? ?? ????? ???? ?? ???? ?? ? ?????.
????? ??? 5?? ?? ????? ??(??? ??? ??? ?? ?? ????, ??? ?? ????, ??? ?????, ??? ???? ?? Phaser ? ??? ??? ?? StampedLock)? ??? ?? Java ??????? ???? ?? ??? ??? ?????. ??? ??? ???? ???? ???? ????? ??? ??? ???? ?? ???? ? ????.
??? ? ??? ? ??? ???? ?? ??????. ??? ?? ??? ???? ????? ??? ??? ??? ???? ?????. ???? ???? ???? ?? ??? ?? ? ??? ?? ??????? ???? ????????.
??? ??? ?? ???? ???? ?? ????? ??? ?? ?? ????? ?? ? ?? ??? ?? ? ????. ??? ??? ??? ?? ???? Java ???? ??? ? ?? ??? ?? ?? ? ??? ?? ?????? ??? ? ?? ??? ???? ?????.
101?
101 Books? ?? Aarav Joshi? ?? ??? AI ?? ??????. ?? AI ??? ???? ?? ??? ?? ? ?? ??? ?? ?????. ?? ??? ??? $4?? ???? ?? ??? ??? ??? ??? ? ????.
????? ?? ? ?? Golang Clean Code ?? ??? ???.
????? ???? ??? ?? ??? ??? ????. ?? ??? ? Aarav Joshi? ??? ? ?? ?? ?????. ??? ??? ???? ????? ?????!
??? ???
?? ???? ? ??? ???.
???? ??? | ??? ?? ???? | ?? ?? ??? | ????? | ??? ??? | ????? ???? | ???? | ??? ??? | JS ??
??? ??? ????
?? ??? ???? | Epochs & Echoes World | ??????? | ???? ???? ?? | ??? ??? ?? | ?? ????
? ??? ??? ??????? ?? ?? Java ????? ??? ?? ?????. ??? ??? 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 ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.
