#java
Read more stories on Hashnode
Articles with this tag
Bye Bye Explicit casts · The traditional usage of instanceof operator requires typecasting inside the if block, i.e., if (obj instanceof String) { ...
Switches in Java lacked an option to match a value based on an expression that is computed at runtime(similar to C). So the values against which a...
Polymorph a step better · Java classes by default are open for extension. A library class created and compiled years ago can be extended by any of the...
Immutable data carriers · Java language is known for being too much verbose which results in writing an ample number of lines to store immutable data...
Parallelization is being done to use the number of cores available in servers and to reduce the time taken for execution. But if race condition isn't...
Consider this situation, a class named EmployeeList which reads a list of employee names from files public class Employee { ... ...