Java? void ???
void – ???? ???? ????.
Java? void ???? ???? ?? ?? ???? ??? ???? ? ?????. ???? ??? ????? ??? ?? ??? ??? ? ?? ??? ???? ??? ???? ?? ?????.
????
void ???? ????? ??? ??? ?????. void ?? ???? ???? ???? ?? ???? ?? ?? ???? ???? ?????.
??
void methodName(????) {
// ??? ??
}
??:https://www.datacamp.com/doc/java/void
??? ??????
Void? ????? ?? ???? ???? ?? ?? ???? ??? ???? ?? ??? ?????.
Java? ?? ???
Java?? return? ?????? ???? ??? ? ????. ?? ?? ?? ???? ???? ? ?????. return ???? ??? ?? ? ?? ??? ???? ???? ??? ????.
Case 1: Methods returning a value Case 2: Methods not returning a value
??:https://www.geeksforgeeks.org/return-keyword-java/
??:
*#return? Java ??????. ? ???? ????? ?? ???? ? ?????. ??? ?? ??? ?? ??? ?? ?????. *
#Return ?? ??? ??? ??? ???? ???. ????? return ??? ?? ????? ???? ???? ? ???.
Java?? ?? ?? ??? ? ????
?, Java? ????? ?? ?? ??? ? ????. ?? ?? ????? ???? ???? ???? ???.
????? ?? ?? ???? ??? ????
?, Python??? ?? ?? ??? ? ????. ??? ?????.
*?? 1: *
??: ?? ?? ?? ??? ??
- ?? ??? ???
- main ???? ???? ????.
- 'father'?? ????? ????.
- ??? ????? ???? ?? ?? 'cook' ???? ?????.
- ?? cook ????? "biryani"? ?????.
- ??, ??? ? ?? ??? ??
- ?? ???? ?? ?? ??? ??? ???? ?????.
- ?? ???? ??? ?? 'fav_dish'? ?????.
- ?? ????? 'fav_dish'? ?????.
????
public class Kitchen { public static void main(String[] args) { Kitchen father = new Kitchen(); String favDish=father.cook(); System.out.println("FAV DISH ="+favDish); } public String cook() { return"briyani"; } }
??
neelakandan@neelakandan-HP-Laptop-15s-eq2xxx:~/Documents/B14$ java Kitchen FAV DISH =briyani neelakandan@neelakandan-HP-Laptop-15s-eq2xxx:~/Documents/B14$
*?? 2: *
1.?? ???? ??? ?? ??
2. MathOperations?? ???? ????.
3. ? ?? ?? ??? ????? ? ??? ???? addNumbers ???? ?????.
4.?? ???:
#????? ????? ????.
5. ? ?? ??(?: 5? 10)? ???? addNumbers ???? ?????.
6. ??? ?? ?? ??? ?????.
7.??? ?????.
????
Case 1: Methods returning a value Case 2: Methods not returning a value
??:
public class Kitchen { public static void main(String[] args) { Kitchen father = new Kitchen(); String favDish=father.cook(); System.out.println("FAV DISH ="+favDish); } public String cook() { return"briyani"; } }
? ??? ????-??,??-??-2? ?? ?????. ??? ??? 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 ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.
