Best Way to Learn Java for a Beginner

Here you will know what is the best way to learn java for a beginner. Programming is the new vogue and a vogue which can make you earn wonders and at the same time make you utilize the capabilities of your brain to the fullest. Learning new programming languages however can sometimes turn out to be challenging especially when the language is one which holds immense importance in various fields. Java is definitely one of those languages which most of

Read more

Java Hybrid Inheritance With Example

Hello everyone, In this tutorial, we are going to learn about Hybrid inheritance in Java. Before diving right into hybrid inheritance let us first quickly look at some other types are inheritance commonly used in Java. As you may know, Java typically uses four types of inheritance: Single Inheritance Multilevel Inheritance Hierarchical Inheritance Multiple Inheritance Single Inheritance: When a class extends another one class we call it Single Inheritance. Here A is called the parent class and B is derived

Read more

Solve Java Command Not Found Error – ‘java’ is not recognized as an internal or external command

If you’re new to java programming, the error “java command not found” or “’java’ is not recognized as an internal or external command, operable program or batch file” may have occurred to you. There are 2 reasons that you’re facing “Java command not found” in your Linux/Mac java’ is not recognized as an internal or external command, operable program or batch file” in your windows PC. Lets discuss these two reasons and its solution one by one. How to Solve

Read more

Loose Coupling and Tight Coupling in Java

In this article you will learn about loose coupling and tight coupling in java. In simple words “Coupling is the degree of dependency between the modules or Routines.”  “In a software or program, the more modules or classes will communicate with each other means the more tightly they are coupled and on other hand, the less they communicate with each other, means the more loosely they are coupled. “ Should the modules of a software tightly coupled or loosely? So

Read more

Harshad Number or Niven Number in Java

Harshad numbers are those integers which are divisible by the sum of the digits of the number. Harshad numbers were defined by a mathematician from India, D. R. Kaprekar. Harshad numbers are also called Niven numbers. For example, the number 198. Sum of the digits of the number, 198 => 1 + 9 + 8 = 18, and, 18 * 11 = 198. Hence, the number 198 is a Harshad number. Below is a program that inputs a number, and checks whether it is

Read more

Python, Java or JavaScript – Which Language Will Dominate in Future?

Programming languages are the core behind any software, websites, games, and apps. So likely, there are different programming languages each distinguished by their functionality, uses, intuitiveness, and market growth. Besides, it’s nearly impossible for any developer to identify which programming language will survive long last in the future. Whether the language currently used in developing apps and software will continue to persist later or not, no one can accurately predict that. Yes, but their current market state and scope for

Read more

Pronic Number in Java

Pronic numbers are those numbers who can be written as a product of two consecutive integers. It means, they are of the form: P = n * (n + 1) For example, the number 56 can be written as 7 * 8, that is, a product of two consecutive integers. Hence, the number 56 is a Pronic number. Pronic numbers are also called oblong numbers, heteromecic numbers, or rectangular numbers. Some of the Pronic numbers are: 0, 2, 6, 12,

Read more

Automorphic Number in Java

Automorphic numbers are those numbers that when squared have the exact same end digits as the number. For example, the number 376. Now the square of the number, 376 is 141376. The last three digits of the square are exactly like the number themselves. Hence, 376 is an Automorphic Number. However, let the number is 45. Now the square of the number, 45 is 2025. The last two digits of the square (25) are not same as the number 45.

Read more

Neon Number in Java

Here in this tutorial you will learn how to check a neon number in Java. What is a Neon Number? Neon numbers are those numbers whose sum of the digits when squared is exactly the same as the number itself. For example, the number 9. Now the square of the number, 9 is 81. The sum of the digits in the square, 81 is 8 + 1 = 9, which is equal to the number itself. Hence, the number 9

Read more
1 2 3 19