Blog: Java concept of the day (Pramod Bablad) |
232 blogs
updated: 51 min. ago
|
||
A stream is a sequence of data generated by the input source and consumed by the output destination. There are two types of I/O streams in J...
|
||
var keyword is introduced from Java 10. Using var keyword, you can declare local variables without mentioning their types. Compiler will aut...
|
||
Predicate.not() is a static method which is introduced in Java 11 to negate the supplied Predicate. In this post, we will see how this metho...
|
||
Strings are the most used data type in Java. Almost every application in Java makes use of strings. That's why strings are treated with spec...
|
||
Optional class is introduced in Java 8 to avoid the null checks and NullPointerException. Before Java 8, if-constructs are used to check the...
|
||
Java 10 has introduced three new methods to java.util.stream.Collecto rs class to collect the resulting elements into unmodifiable collectio...
|
||
1) wait() Vs sleep() In Java wait() sleep() The thread which calls wait() method releases the lock it holds. The thread which calls sleep() ...
|
||
1) What are the main features of Java? a) Object Oriented : Java is an object oriented language where everything is done keeping objects (da...
|
||
In Java 9, some static factory methods are introduced to easily create immutable collections. They are List.of(), Set.of() and Map.of(). The...
|
||
1) After Java 8, what do you think about Java? Is it still an object oriented language or it has turned into functional programming language...
|
||
Made better & faster using https://www.yourkit.com/ Java Profiler