COREJAVA

COREJAVA Interview Questions And Answers


Totel:636 Click: 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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
Java Interview Questions And Answers

Page 1

Oracle will soon roll out Java 12 in March 2019 and new releases 

Java 12 features

    Switch expressions (JEP 325)
    Default CDS archives
    Shenandoah
    Microbenchmark suite
    JVM constants API
    One AArch64 port, not two
    Abortable mixed collections for G1
    Promptly return unused committed memory from G1

var list = new ArrayList< String >()

 (var s1, var s2) -> s1 + s2

It was in Java 8 but got removed in Java 10. 
Now it’s back in Java 11


The JDK 11 also allow annotations to be added to lambda’s parameters without having to write full variable type name

Function< String, String > append = (@NonNull var string) -> string + " World";

1. Running Java File with single command,directly run the file with java command and it implicitly compiles.
2. Added new String Methods 
   e.g. isBlank() ,lines(),strip(), stripLeading(), stripTrailing(),repeat(int)
3.JEP 323, Local-Variable Syntax for Lambda Parameters .

ArrayIndexOutOfBoundsException

The trim () eliminate spaces from both the ends of a string.


Goto Page:

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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
Java Objective Questions And Answers

Java Objective Questions And Answers

Java Interview Questions And Answers

Java Subjective Questions And Answers


R4R,Java Objective fresher and experienced, Java Subjective fresher and experienced ,Java Interview Questions And Answers,Java fresher and experienced,Java Interview fresher and experienced ,Java Questions fresher and experienced,Java Answers fresher and experienced