2024?? ??? ??? ????? ???? ??? ??? ???? ??????. ?? ?? ?????. ?? ???? ??? ?????! ?? ?? ?????? ??? ?? ???? Java ??? ???? ?? ???? ?????!
???
??? PVS-Studio?? ??? ?? ???? ??? ???? ??? ???? ????? 2020? ??? Java ?? ?? ????! ???? ??? ???? ???? ?????. ?? ???? ?? 10??? ?? ???? ??? ???? ???? ?? ??? ??? ??? ? ? ?? ??? ????. ??? ??? ????.
- ???? ??
- ??? ???? ??
- ???, ???, ????.
???? ????? ??? ?? 10?? ???? ???? ?????. ? ??? ????? :)
10?. ??? ????
? ??? ? ?? ?? ??? ? ? ?? ??? ?????.
public Builder setPersonalisation(Date date, ....) { .... final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8"); final DateFormat format = new SimpleDateFormat("YYYYMMdd"); out.write(format.format(date)); .... }
? ??? ??? ?? ?? ?? ? ??? ??? ? ?? ??? ?? ?? ?? ???? ?? ? ?????. :) ??? ??? ????? ??? ???.
SimpleDateFormat ???? ??? ??? ???????. ??? ? ???? ? ??? ??? ??(2024? 10? 12?)? ?? ?? ?? ??? ???? ??? ??? ?? 20241210? ?????.
??? 2024? 12? 29?? ??? ?? 20251229? ????? ???? ??? ?? ???? ???. ??? ????? ????.
?? SimpleDateFormat ??? Y ??? ? ??? ???? ??? ???? ??? ?????. ??? ???, ??? ?? 4?? ???? ? ?? ? ?? ?? ?????. ??? ? ?? ???? ????? 3? ?? ??? ??? ? ????.
? ??? ????? ??? Y? ??? y? ????. ? ??? ?? ?????? ??? ? ??? ?? ?? ???? ??????.
? ??? ?? PVS-Studio ??? ??? ????.
V6122 'Y'(??) ?? ??? ???????. ??? 'y'(??)? ????? ???? ? ????. SkeinParameters.java 246
? ??? ???? ?? ???? ? ??? ?? ?? ?? ??? ????. ???? ? ??? ???? ??? ? ???? ??? ???? ? ??? ??? Bouncy Castle? ?? ??? ??? ??? ???? ?? ??? ?????. ??? ??? ?? ?? ??? ? ??? ??? ? ???????. ??? ??? ???? ?? ?? ??? ?? ???? :)
9?. "? ?? ? ???"
?? ???? GeoServer ???? ??? ?? ??? ????.
@Test public void testStore() { Properties newProps = dao.toProperties(); // .... Assert.assertEquals(newProps.size(), props.size()); for (Object key : newProps.keySet()) { Object newValue = newProps.get(key); Object oldValue = newProps.get(key); // <= Assert.assertEquals(newValue, oldValue); } }
PVS-Studio ??? ??? ????.
V6027 ?? 'newValue', 'oldValue'? ??? ?? ??? ?? ??????. ????? ????? ?? ??? ? ????. DataAccessRuleDAOTest.java 110, DataAccessRuleDAOTest.java 111
??? ??? ???? ?? ?????? ? ?? ? ?? ??? ??? ??? ???????:
public Builder setPersonalisation(Date date, ....) { .... final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8"); final DateFormat format = new SimpleDateFormat("YYYYMMdd"); out.write(format.format(date)); .... }
?? ??? ??? ???? ???? ??? ????. ??? ?? ?? ? ??? ????.
??? ??? ? ?????. ??? ???? ?? ??? ???? ?? ????? ???? ?? ??? ???? ???? ????. ??? ??? 10? ?? ? ??? ????? ??? ? ?? ??? ?????. ? ??? ??? ? ?? ???? ????.
8?. ?? ?? ???
JBullet? ??? ?? ?? ???? ?? ? ??? ?? ??? ??? ?? ? ??? ??????. ??? ??? ??? ????.
@Test public void testStore() { Properties newProps = dao.toProperties(); // .... Assert.assertEquals(newProps.size(), props.size()); for (Object key : newProps.keySet()) { Object newValue = newProps.get(key); Object oldValue = newProps.get(key); // <= Assert.assertEquals(newValue, oldValue); } }
??? ??? ??? ???? ?? PVS-Studio ??? ???? ??? ?????. ??? ?? ??? ??? ?? ???.
V6026 ? ?? ?? 'proxy1' ??? ???? ????. HashedOverlappingPairCache.java 233
?, ????? ??? ??? ?????. ??? ? ???? ? ??? ?? ???? ????. ???? ???? ? ??? ??? ????.
JBullet ?????? C/C Bullet ?????? ???? ??? ??? ????.
@Test public void testStore() { Properties newProps = dao.toProperties(); // properties equality does not seem to work... Assert.assertEquals(newProps.size(), props.size()); for (Object key : newProps.keySet()) { Object newValue = newProps.get(key); Object oldValue = newProps.get(key); Assert.assertEquals(newValue, oldValue); } }
? ??? ???? ?????? ?? ? ? ????. git ???? ???? ?? ???? ???????. ??? ? ???? ?? ??? ??? ? ??? ??? ??? ??????.
??? ??? ??? ?? ?? ?? ????? ?? ?? ? ??? 8?? ?????. ?? ?? ??? C? ??? ??? ??? ???? ???? ????.
7?. ??? ???? ??? ??
?? ?? ??? ?? ?? ??? ??? ???????. ??? GeoGebra ??? ?? ?????:
@Override public BroadphasePair findPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1) { BulletStats.gFindPairs++; if (proxy0.getUid() > proxy1.getUid()) { BroadphaseProxy tmp = proxy0; proxy0 = proxy1; proxy1 = proxy0; } .... }
??? ?? ?????! ???? ??? ???? ??? ??? ????? ?????.
V6107 ?? 0.7071067811865? ???? ????. ?? ?? ???? ?? ? ????. Math.sqrt(0.5) ??? ??????. DrawAngle.java 303 ??? 0.7071067811865? ??? ??? ????. ??? 0.5? ???? ?? ??? ?????. ??? ??? ??? ??? ??? ?????? GeoGebra? ????? ?? ?? ??? ??????, ???? ???? ??? ?? ?? ? ????. ?? ? ? ??? ?????? ?? ?????? ?????? ?? ?? ???? ??? ??? ????? ???? ??? ????. ??? ??? ??? ?? ? ?? ?? ??? ???? ??? ???? ?? ??? ??????. ??, ??? Java ???? ??? ? ?? ?? ?????. ??? ???? ???? ?? ?? ????. ??? ?????? 7?? ???? :)??
?? PVS-Studio ??? ???????.
6?. ? ??? ???? ????
DBeaver ??? ???? ? ? ?? ???? ??? ?? ??? ?? ??? ?? ?? ?? ????. ??? ?? ?????.
public Builder setPersonalisation(Date date, ....) { .... final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8"); final DateFormat format = new SimpleDateFormat("YYYYMMdd"); out.write(format.format(date)); .... }
PVS-Studio ???? ??? ??? ??? ????.
V6082 ???? ?? ?? ?? ??. ??? ????? ????? ???. TaskImpl.java 59, TaskImpl.java317
? ??? ???? ??? ??? ??? ??? ?? ??????. ??? ??? Double-Checked Locking ??? ???? ???? ????. ??? ?????? ??? 20? ??? ??? ????? :)
??? ?? ? ??? ???? ??? ?? ??? ?? ??? ????. ??? ??? ??? ??? ???????.
?? ?? ?? ??? ?? ??? ???? ??? ???? ???? ? ?????. "???" ?? ?? "??" ??? ??? ?? ?? ?????. ? ??? ?? ??? ???? ???? ?????.
??? ? ?? ????? ?? ??? ?????? ????? ????? ?? ??? ??? ? ????. ??? ?? ???? ??? ????? ??? ??? ?? ??? ??? ? ??? ?? ?? ??? ??? ??? ? ????. ? ??? ?? ???? ???? ???? ????? ? ???? ? ????.
??? ??? ????. ? ??? JDK 5?? ???? ?????. JDK 5?? ?? ?? ?? ??? ?? ???? ???? ??? ???? ?? ??? ???? ???????. ???? ? ???? ???? ??? ?????.
??? ??? ? ??? ??? ?? ????. ? ??? ????? JVM ??? ?? ?????, ??? ??? ? ?? ??? ??? ????. ??? DCL ??? ?? ???? ?? ??? ??? ??? ??? ??? ? ?? ???? ???? ?? ????. ?? ?? ???? ??? ??? ?????? ??? ???? ??? ????? ??? ???? ???.
5?. ?? ???
5?? ??? ??? ? ? ?? DBeaver ?????. ???????:
@Test public void testStore() { Properties newProps = dao.toProperties(); // .... Assert.assertEquals(newProps.size(), props.size()); for (Object key : newProps.keySet()) { Object newValue = newProps.get(key); Object oldValue = newProps.get(key); // <= Assert.assertEquals(newValue, oldValue); } }
??? ??? ????.
V6030 '&' ??? ???? ??? ???? ?? ????? ?? ???? ?????. ??? '&&'? ???? ?? ? ?? ????. ExasolTableColumnManager.java 79, DB2TableColumnManager.java 77
???? ?? &&? ?? &? ??????. ??? ?? ????. ???? ??? ?? AND ??? ???? ????. ?? ??? ?? AND??? ???? ????. ??? exasolTableBase != null? false? ?????? ?? ???? exasolTableBase.getClass()? ???? NPE? ?????.
?????. ??? ????. ???? ?????? DBeaver?? ??? ??? ?? ????. ??. ???? ????? ????? ???? ?? ??? ?? ??? ? ?? ?? ???????.
ExasolConnectionManager.java: ExasolDataSource.java:??? ???? ?? ?? ?? ??
ExasolSecurityPolicy.java:
public Builder setPersonalisation(Date date, ....) {
....
final OutputStreamWriter
out = new OutputStreamWriter(bout, "UTF-8");
final DateFormat
format = new SimpleDateFormat("YYYYMMdd");
out.write(format.format(date));
....
}
@Test
public void testStore() {
Properties newProps = dao.toProperties();
// ....
Assert.assertEquals(newProps.size(), props.size());
for (Object key : newProps.keySet()) {
Object newValue = newProps.get(key);
Object oldValue = newProps.get(key); // <=
Assert.assertEquals(newValue, oldValue);
}
}
@Test
public void testStore() {
Properties newProps = dao.toProperties();
// properties equality does not seem to work...
Assert.assertEquals(newProps.size(), props.size());
for (Object key : newProps.keySet()) {
Object newValue = newProps.get(key);
Object oldValue = newProps.get(key);
Assert.assertEquals(newValue, oldValue);
}
}
?? ?? ? ??? ??? ?? ???? ??? ???? ?????? ???? ?? ??? ??????. ?? ??? ??? ??? ?????. ??? ??? ?????.
??? ?? ??? ?? ??? ???? ???? ????? ?? ??? ?? ? ?? ??? ????? ????.
???? ?? ????? ? ??? ??????.
??? ? ?? ??? ??? ??? ?????. ????? ?? ??? ?? ???? 40% ? ?? ??? ?????.
?? ? ? ??? ???? ???? ???? ?? ??? ??? ?????.
??, ???? ?? ??? ??? ??? ??? ????. ?????? ??? ?? ?? ?? ?????. ??? ?? ?? ???? ??? ???? ?? ?? ??? ???? ????? ? ??? ??? ? ????.
??, ?? ?? ????? ???? ??? ??? ??? ? ????. ? ????? ? ?? ?? ?? ?? ??? ?? ?? ??? ?? ???? ?? ?? ????? ?? ? ? ????.
??, ?? ???? ??? ??? ?? ??? ?????.
????? ?? ??? ??? ?? ?? ???? ?? 5??? ? ?? ?????? ???????.
4?. ???? ???? ??? ???? ????.
???? ???? ??? ??? ?? ???? ?? ???? ???? ??? ????. ??? ?? ?? "?? ???? ??? ???????"?? ?? ?? ??? ????. GeoServer ??? ? ?? ??? ?? ?? ? ? ?????. ??? ?? ?????.
@Override public BroadphasePair findPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1) { BulletStats.gFindPairs++; if (proxy0.getUid() > proxy1.getUid()) { BroadphaseProxy tmp = proxy0; proxy0 = proxy1; proxy1 = proxy0; } .... }
PVS-Studio ??:
V6060 'e' ??? null? ?? ???? ?? ???????. ResourceAccessManagerWCSTest.java 186, ResourceAccessManagerWCSTest.java 193
V6060? ?? ?? ??? ?? ???? ??? ?? ?? ? ??? ????? ?? ???? ???? ??? ?? ? ????. ??? ?? ??? ???? ???? ??? ?????? ??????. ??? ? ??? ??? ??? ?? ? ??????.
???? e ??? catch ????? ???? ? ?? ???? ?? ??? ????? ?? null? ??? ??? ??? ??? ??? ??? ?? ? ????. ??? ??? ??? ?? if(e == nul) ??? then ??? ??? ? ?? ??? ??? ? ????. ??? ??? ????? ??? ????. ?? ??? ???????
??? ?? ??? ??? ??? ? ?? ??? se? ????. ?? ?? ??? ???? ?? ????. ??? ??? e ?? se ??? ??? ?? ?? ??? ? ????.
? ??? ?? then ??? ???? ???? ??? ??? ?? ? ? ????. ? ?? ?? ?? ??? ?? ???? ??? ?? ???? ??? ??? ???? ?? ??? ?????.
? ????? ?? ? ?? ? ?? ??? ??? ????.
- ?????? ?? ??? ???? ?????. ??? ??? ??? ??? ??? ? ?? ????.
- ????? ??? ??? ? ?? ??? ???? ??? ????? ???? ????. ??? ? ??? ??? ??? ? ?? ??? ????.
??? ??? ??? ?? ? ??? ? ???? 4?? ?????.
3?. ??? ??? ???, ???
?? 3?? ???? NetBeans ??? ??? ????. ?? ?? ??? ????? ????? ? ?? ??? ???????.
public Builder setPersonalisation(Date date, ....) { .... final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8"); final DateFormat format = new SimpleDateFormat("YYYYMMdd"); out.write(format.format(date)); .... }
????? ??? ?? ?????. ???????...
?? ??????
???! iDesc.neighbor != null || ?????? ??? ???? ? iDesc.index == iDesc.index, ????? ??? :)
?? ??? ??? ???? ?? ??? ????? ????. ?, ???? ? ?? ??? ????. ?? ??? ?? ?????. ??? ??? ??? ?? ??? ?? ?????? :)
???? ?? i^i ????? ??? ???? ?? ??? ??????.
V6001 '^' ???? ??? ???? ??? ?? ??? 'i'? ????. LayoutFeeder.java 3897
? ?? ??? ?? ?? ??? OR? ?? 0?? ??? XOR ??? ??? ????. ??? ???? ?? XOR? ???? ??? ????.
a | b | a^b |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
?, ????? ?? ???? ??? true? ???. ?? ????? ?? ??? ?????.
?? ? ? ??? ??? ?????? i^i? ?? ??? ??? i^1 ??? ????. ??? ??? ??? i^1? ?? ???? ??? ?? ???? ? ??? ???? ?? ????.
?? ??? ?? ????, ? ??? ?? ???? ???:
public Builder setPersonalisation(Date date, ....) { .... final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8"); final DateFormat format = new SimpleDateFormat("YYYYMMdd"); out.write(format.format(date)); .... }
??? ??? ??? ??? ??? ??? ???? ?? ? ??? ??? ?????? ???? ?????. ??? ??????, ??? ???? ??? ???? ?? ??? ??? ??? :)
2?. ??? ???? ?
?? ? ?? ? ? ?? DBeaver ??? ??? ????? ? ?? ??? ???????. ?????. ??? ? ?? ??? ?????.
PVS-Studio ???? isBinaryContents? ?? ????? ????? TextWithOpen ???? ????? ???? ?? ???? ????.
@Test public void testStore() { Properties newProps = dao.toProperties(); // .... Assert.assertEquals(newProps.size(), props.size()); for (Object key : newProps.keySet()) { Object newValue = newProps.get(key); Object oldValue = newProps.get(key); // <= Assert.assertEquals(newValue, oldValue); } }
?? ???? ??????? ? ??? ????. ?? ???? ???? ???? ????. ??? ?? ???? ??? ??????. ?? ? ??? ?? ???? ?? ??? ??????.
TextWithOpen?? ?? ?? ???? ??? ? ? ??? TextWithOpenFile???. ??? ???? ??? ????? false ?? ?????? ?? ??? ?????.
@Test public void testStore() { Properties newProps = dao.toProperties(); // properties equality does not seem to work... Assert.assertEquals(newProps.size(), props.size()); for (Object key : newProps.keySet()) { Object newValue = newProps.get(key); Object oldValue = newProps.get(key); Assert.assertEquals(newValue, oldValue); } }
?? ??????? ? ???? ???? ??? ?????
@Override public BroadphasePair findPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1) { BulletStats.gFindPairs++; if (proxy0.getUid() > proxy1.getUid()) { BroadphaseProxy tmp = proxy0; proxy0 = proxy1; proxy1 = proxy0; } .... }
????? ???? ??? ????? ???? ??? ?? ??????. ??? ?? ??? ??? ???? isBinaryContents ???? ?? ??? ????!
PVS-Studio ??? ??? ????.
V6052 'TextWithOpen' ?? ??? ????? ???? 'isBinaryContents' ???? ???? ????? ?? ???? ??? ? ????. ?? ??: ????. TextWithOpenFile.java(77), TextWithOpen.java 59
? ???? ?????. ?? ??? ???? ?? ??? ???? ?? ????? ??? ??? ??? ??? ?? ?? OOP? ????? ???? ?? ??? ??? ??? ?????. ??? ??? ??? ??? ?????? ??? ? ? ???, ?? ?? ??????. ? ??? ?? (???) ???? ????? 2??? ?????.
1?. ??? ??? ?? ??? ?????.
?????! ?? 1?! ??? ????? ??? ???? ????. ?? ?? ?? NetBeans ???? ??? ??? ??????. ?? ?? ??? ???????.
public Builder setPersonalisation(Date date, ....) { .... final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8"); final DateFormat format = new SimpleDateFormat("YYYYMMdd"); out.write(format.format(date)); .... }
?? ???? ?? ??? ???? ?? ?, ??? ??? ? ?? ???? ?? ?????? ?????. ???? ?? ?????. PVS-Studio ??? ??? ????.
V6009 ?? ??? char ?? ???? '47'? ?????. ??? '/' ??? ??? ????? ? ????. IgnoreUnignoreCommand.java 107
?? ? ??? ????? ??????. StringBuilder ????? char? ???? ????? ????. ??? ?? ???? ?????? ???? String? ???? ????? ??? ???? ??? ? ???, StringBuilder? ?? ?? ? ???? ? ????.
??? ??? ?? ??? ???? int? ???? ?? ???? ?????. ??? ???? StringBuilder? ?? ??? ?????. char? ??? ???? ?? ???? ???? ???? ????? ?? ??? ??? ????. ?? ??? ???? ??? ?? ???? ???? ?? ??? ???? ???.
??? ????, ?? ? ?? ??? ?????? ? ??? ??? ??, ??? ???? ???? ?? ????? ??? ??? ?? ? ??? ??? ???? ???.
???? ????? ?? ?? ??? ?????. ??? ??? ?? ??? ??? ??? ???.
- ??: /folder1/file
- ????: /folder1/folder/.
??? ? ??? ? ????. ?? ?????. ??? ??? ???? ?????. :) ??? ??? ???? ??? ??? ???? ??? ?? ?? ??? ?? ??? ?? ???.
- /??1/??/;
- /??1/??//
?, ??? ?? ?? ???? ?????. ?? ??? ?? ?? ?? ??? ? ???? ???? ??? ?? ?? ???.
???? ? ?? ??? ? ???? ???? ?? ??? ?????? ????. ??? ???? ???? ?? ??? ???? ???? ???? ??? ??? ? ???? ??? ??? ??????? ????.
??? ??? ? ?? ??? ???? ???? ??? ???. ??? ??, ??? ??????? :)
??
? ?? ???? ???? ????? ????. ??? ??? ?? ???? ??? ?? ??? ?? ?? ??? ??? ??? ???? ??? ???? ??? ???. ??? ????? ????? :)
?? ??? ??? ??? ???? 2024? ?? C# ??? ????? ????. ??? ??? ?? ??? ??? ????!
? ?? ??? PVS-Studio ???? ?????? ?? ??(7.34)? ?? ???????! ? ??? ?? ??? ?? ? ????.
?? ??? ?? ??? ??? ???? ?????? ??? ??? ????.
- PVS-Studio X(???);
- ?? ?? ??;
?? ? ?? ????!
? ??? 4?? ?? ???? 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?? ??? ?? ???? ??? ?? ? ? ??? ??? ???? ? ?????. ?? ???? ??? ??, ??? ?? ??? ?? ?? ??? ??? ????? ???? ????? ?????. ?? ??? ??? ??, ????? ? ??? ????, ?? ??? ??? ?????? ? ?? ? ?? ?????.

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

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

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