-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNote
More file actions
83 lines (33 loc) · 990 Bytes
/
Copy pathNote
File metadata and controls
83 lines (33 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Java 8 to 21 features:
Stream API:
Java 8 introduced the stream API which provides a functional
approach to processing sequence of elements.
Optional Class:It helps us to deal with NullPointerException.
Advantages:
i)Null checks are not required.
ii)No more NullPointerException at run time.
iii)No more boilerplate code.
Java 10: Var -> it is used for local variable type inference.
var number=10;
var name="John";
var price=10.5;
int a;
a=10;
var a=10;
var x=null; x
var a=10;
a="hello";
allowed : local variables, loop variable, enhanced for loop
not allowed: class fields, return types, method parameters.
Java 15: Text blocks(""")
String st="{\n "+
"\"name\"+
"\age\"+
}";
String st="""
""" ;
Records: java 16
I18N:
i)Locale class: It represents a specific georgaphical or cultural region.
ii)ResourceBundle class: It is used to store locale-specific resources.
a)Messages b)Labels c)Error texts d)Menu names