Friday, February 26, 2021

Retry In The Future

Writing asynchronous code in Javascript is relatively easy.// async functionlet attempt = 1;while (true) {    try {        const result = await operationThatMayFail();        // it didn't fail        return result;    } catch (error) {        if (attempt...

Wednesday, February 24, 2021

Java.Lang.Float class in Java

Float class is a wrapper class for the primitive type float which contains several methods to effectively deal with a float value like converting it to a string representation, and vice-versa. An object of Float class can hold a single float value. There are mainly two constructors to...

Tuesday, February 23, 2021

Controlling the Visibility of Class and Interface in Java

Maintenance is one of the important aspects of software development, and experience has shown that software that maintains its component’s visibility low is more maintainable than one that exposes its component more. You’re not going to know it upfront, but when redesigning the application, you’re going to miss...

Monday, February 22, 2021

Unit testing private methods

IntroductionIn this article, I will contemplate the testing of private methods in unit tests. After that, I will propose a way or pattern to do it, if you must. Finally, I will show how you can generate this pattern automatically.Read More: 1Z0-900: Java EE 7 Application DeveloperAnd yes, I...

Friday, February 19, 2021

Difference between abstract class and interface

Abstract class and interface both are used to achieve abstraction where we can declare the abstract methods. Abstract class and interface both can't be instantiated.But there are many differences between abstract class and interface that are given below. Abstract class Interface  Abstract class can have abstract and non-abstract...

Thursday, February 18, 2021

Programming Language For Placement – C++, Java or Python?

Many times we’ve seen students struggling with the dilemma of choosing a worthwhile Programming Language for the sake of placements. Though this situation is somewhat justifiable as among the numerous Programming Language available across the world, to pick out the one that can help you to get your...

Wednesday, February 17, 2021

Developing a Module with Java 9 in Eclipse IDE, Part 2

In an earlier post, "Developing a Module with Java 9 in Eclipse IDE, Part 1," we introduced modules in Java 9. JSR 376: JavaTM Platform Module System provisions for a module system and Java 9 implements a module system. We defined a module and the associated directives of...

Pages (26)1234567 »