“?? ?? ??????? ?? ?? ?? ???? ?? ????. ? ? ??? ? ?????"*
Java? ??? ????, ?? ??? ??? ??? ??????, ??? ?? ???? ?? ?? ???? ? ? ????. ??? ???? ??? ? ?? ??????? ??? ??? ?? ? ?????. ??? ??? ?? ??? ???? ??? ?????.
???? ??????
??? Java? ???? ????. ?? ??(???)? ?? ????(??)? ???, ??! ??? ? ??, ??? ??? ???? ?? ??? ?????, ??? ?? ??? ??? ? ????. ???? ????? ???? ????? ??? ? ?? ???? ??? ????.
??? ??
??? ??? ??? ??? ??? ?? ??? ??? ???? ?????. ?? ??, ??? ?? ?? ??? ???? ?? ?? ??? ??? ??? ??? ? ??? ?????. ? ?? ??? ??? ????.
???? ??? ?? : ???? ??? ?? ??
??? ?? : ???? ???? ??? ??? ?????. ?? ? ?? ??? ?? ??? ???? ?????.
??? : ?? ???? ??? ?? ???? ??????.
??? ??? ??
Java? ??? ?? ???? ?????. ???? ?? ??? ????.
-
?? ??? ??: n ??? ??? n ?? ??? ??? ??? ? ?? ??? ??? ?????. ??? ? ??? ?? ???? ?????. ?? arr? ??:
- arr[0]? ?? ??? ????.
arr[1]? base_address size_of_element? ????.
?
- ??? : ??? 0?? ??????. ?, ? ?? ??? ??? 0? ???? ????? ? ?? ??? ??? 1? ???? ??????.
Java? ?? ?? ??
Java?? ??? ????? ?? ?? ??? ????.
// Declaring and initializing an array of integers int[] myArray = new int[5]; // Array of size 5, initialized with default values (0s). // Shortcut with initialization int[] myArray = {1, 2, 3, 4, 5}; // Multidimensional array declaration int[][] matrix = new int[3][4]; // A 3x4 matrix.
?? ??
- Single-Dimensional Arrays : ???? ??? ????.
String[] names = {"Alice", "Bob", "Charlie"};
- ??? ??: ???(2D) ?? ??? ???(3D ?)? ?????.
int[][] table = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} };
- Jagged Arrays : ? ?? ??? ??? ?? ?? ?????.
int[][] jaggedArray = { {1, 2}, {3, 4, 5}, {6} };
??? ??? ??
- ?? ??? : ?? ? ?? ?? ?????.
int[] numbers = {10, 20, 30, 40};
- ?? ??? : ?? ? ?? ??? ? ????.
int[] numbers = new int[4]; numbers[0] = 10; numbers[1] = 20;
?? ?? ? ??
Java? java.util.Arrays ???? ??? ??? ?? ?? ????.
- ?? :
int[] arr = {5, 3, 8, 1}; Arrays.sort(arr); // arr is now [1, 3, 5, 8]
- ?? ?? :
int index = Arrays.binarySearch(arr, 3); // Finds the index of 3.
- ?? ??? :
Arrays.fill(arr, 10); // Sets all elements to 10.
- ?? ?? :
int[] arr1 = {1, 2, 3}; int[] arr2 = {1, 2, 3}; boolean areEqual = Arrays.equals(arr1, arr2); // True
??? ??? ????
- ?? ?? :
for (int i = 0; i < arr.length / 2; i++) { int temp = arr[i]; arr[i] = arr[arr.length - 1 - i]; arr[arr.length - 1 - i] = temp; }
- ??/?? ?? ?? :
int max = arr[0]; for (int i = 1; i < arr.length; i++) { if (arr[i] > max) { max = arr[i]; } }
- ??? ?? : ??? ????? ?? ?? ??? ???? ????? ???? ?? ?????.
void rotateRight(int[] arr, int steps) { int length = arr.length; steps = steps % length; // In case steps > length int[] temp = new int[steps]; System.arraycopy(arr, length - steps, temp, 0, steps); System.arraycopy(arr, 0, arr, steps, length - steps); System.arraycopy(temp, 0, arr, 0, steps); }
???? ?? ??
- ???? ??? ?? : ??? ?? ??? ??? ??? ?????.
int maxSum = 0; int windowSum = 0; int k = 3; // Size of the window for (int i = 0; i < k; i++) { windowSum += arr[i]; } maxSum = windowSum; for (int i = k; i < arr.length; i++) { windowSum += arr[i] - arr[i - k]; maxSum = Math.max(maxSum, windowSum); }
- 2? ??: ?? ??? ???? ?? ???? ?? ?? ??? ??????.
Arrays.sort(arr); // Required for this approach int left = 0, right = arr.length - 1; while (left < right) { int sum = arr[left] + arr[right]; if (sum == target) { // Found the pair } else if (sum < target) { left++; } else { right--; } }
?? ?? ??? ?? ??
?? ?? ?? : ?????, ?????, ?? ?? ?????, ??? ????????
?? ????? ???? ??? ?????.
?? ??? ????? ??? ???
?? ??: ??? ?? ? ??? ???
Java? ??? ? ???? ?????. ??? ??? ??? ????? arr[i][j]? ?? ??? ?????? ???? ? ? ?????.
arr? ?? ??? ?????.
? arr[i] ??? ?? ??? ?? ?????.
??? ???? ??
??? ??? ??? ?? : ??? ?? ?? ?? ? ? ????.
?? ???? ??? ??: ???? ??? ?? ???? O(1) ?? ???? ?????.
??
??? Java ????? ???? ?? ?????. ??? ???? ????? ??? ????? ???? ? ??? ??? ??? ???? ? ?? ???? ? ? ????. ???? ??? ?? ? ??? ? ???? ??? ???? ??? ??? ?? ??? ???? ?? ? ????.
?? Java ??? ?? ???? ???? ??????. ?? ???? ???? ?? ?? ??? ??? ????. ??? ??? ??? ???? ?? ? ??? ??? ?? ??? ???? ???? ??? ?? ?????!
? ??? Java ??? ?? ?? ???: 0?? ????(???? ?? ??)? ?? ?????. ??? ??? 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)

Java??? ?? ??? ????? ? ?? ?? ???? ????. ??, ?? ??? ??? ??? ?? ? ? ???, ?? ?? ?? ??? ?? ?? ?? ???? ??? ?????. Runnable? run () ????? ?? ?? ??? ??? ?? ?? ? ????? ??? ?????. ??, Callable? ?? ??? ?????? ?? ?? ? ??? ?? ? ????. ?? ????? ????? ??? ???????. ??, Runnable? ??? ?? ExecutorService? ?? ?? ? ? ??? Callable? ExecutorService?? ??? ? ??? ?? ??? ?? ? ? ????.

Java? ??? ?? ??, ?? ? ??? (? : Projectreactor) ? Java19? ?? ???? ??? ??? ?????? ?????. 1. CompletableFuture? ?? ??? ?? ?? ??? ? ?? ??? ????? ?? ??????? ? ?? ??? ?????. 2. Projectreactor? ?? ? ??? ??? ???? ?? ???? ? ??? ???? ?? ? ?????? ?????. 3. ?? ???? ??? ??? ??? I/O ??? ? ??? ???? ?? ??? ????? ??? ???? ????. ? ???? ?? ??? ????? ??? ??? ??? ?? ??? ??? ?????? ???? ???? ?? ?? ??? ??????.

Javanio? Java 1.4? ?? ? ??? IOAPI???. 1) ?? ? ??? ?????, 2) ??, ?? ? ??? ?? ?? ??, 3) ? ??? ??? ???? 4) ?? ??? ?? IO?? ? ????? ?????. 1) ? ?? IO? ??? ?? ??? ???, 2) ??? ??? ?? ???? ?????, 3) ???? ?????? ???? 4) ??? ?? ??? ?? ?? ? ??? ?????. 1) ??? ??/??? ??? ?? ?????, 2) ???? ???? ???? ?? ???? ???????. 3) ??? ??? ??? ???????.

Java?? ??? ?? ?? ??? ???? ? ?????. ?? ???? ??? ?????. 1. ?? ?? ? ???? ??????? ?? ?? ?? ??? ???? ??? ?????. 2. ?? ??, ???, ??? ?? ?? ?? ???? ????? ?? ??? ??? ??? ?????. 3. ENUMMAP ? ENUMSET? ???? ?? ? ?? ???? ???? ??? ???? ? ?????? ?????. 4. ?? ?, ??? ?? ?? ??? ?? ????? ?? ??? ??? ?????.? ????? ?? ???? ????????. ??? ???? ???? ?? ??? ????? ??? ?? ? ??? ?? ?????? ???????.

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

JavaprovidesmultiplesynchronizationToolsforthreadsAfety.1.SynchronizedBlocksensUremutualExclusionByLockingMethodSorspecificCodesections.2.reentrantLockofferAdcerAdcenctrol, ratelockandFairnessPolicies.3.ConditionVariablesStowFor

Java ?? ??? ??? ?? ? ??? ???? ?? ??? ???? Try-Catch? ???? ????? ????? ???? ????. 1. IoException? ?? ?? ? ??? ???? ?? ??? ??? ?? ???????. 2. NullPointerException? ?? ???? ?? ??? ????? ???? ?? ??? ?? ???? ??? ?????. 3. ??? ?? ? ?? ??? ???? ??? ??? ?? ????? ???????. 4. CODE? ?? ??? ??? ?? ??? ???? ??? ???? ??? ???? ?? ?? ????. 5. ?? ???? ??? ??? ?? ??? ??? ?? ???? ??? ???????.

?? ?? Java? ?? ???? ?? ? ? ? ????? ????, ? ??? ??? ??? ??? ???? ? ????. 1. ?? ?? hashcode () ???? ???? ?? ?? ???? ?? ??? ?? ?? ???? ?????. 2. ?? ??? ??? ?? ?? ???? ??? ??? ? ????. ?? ??? ?? ? ??? ??? ?????. JDK8 ? ?? ? ??? ?? ?? (?? ?? 8) ??? ????? ?? ???? ?? ? ??? ?????. 3. ??? ?? ???? ?? ???? ?? equals () ? hashcode () ???? ?? ???????. 4. ?? ?? ??? ???? ?????. ?? ?? ??? ???? ?? ?? (?? 0.75)? ??? ?? ? ???; 5. ?? ?? ??? ??? ??? Multithreaded?? Concu? ???????.
