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 Program to Find LCM of Two Numbers

Here you will get java program to find lcm of two numbers. Finding LCM is one of the most basic mathematical calculations that are taught to students at their primary classes. Let’s review the basic concepts again. LCM stands for Least common multiple which simply means that it is a number that is divisible by all the given numbers. This number i.e., LCM of the given numbers is always greater than or equal to the largest of given numbers. This

Read more

Hill Cipher in Java [Encryption and Decryption]

Here you will learn about hill cipher in java with program and algorithm. To start with the program directly is not a good idea here. Until you don’t have a brief understanding of Hill cipher algorithm, their programs will merely a code to copy paste. As per Wikipedia, Hill cipher is a polygraphic substitution cipher based on linear algebra, invented by Lester S. Hill in 1929. Basically Hill cipher is a cryptography algorithm to encrypt and decrypt data to ensure data security. Also Read: Caesar Cipher in

Read more

Shell Sort in Java

Here you will get program for shell sort in Java. Insertion sort is no doubt an efficient and fast sorting technique to sort a given set of values, but sometimes the insertion sort may be implemented in a comparatively complex manner if some “light” elements are used at the ends. For removing such problems, the shell sort was introduced by Donald Shell in 1959. It attempts to sort the data moving large elements towards one end and the smaller ones

Read more

Difference between Abstract Class and Concrete Class in Java

Here you will learn the difference between abstract class and concrete class in Java. Abstract classes are partially implemented classes. This means that they have some methods which need to be implemented in the derived class. As the object of abstract classes can’t me instantiated, so they just serve the purpose of inheritance. These classes need to have at least one abstract method. An abstract class can extend from only one abstract or concrete class but can implement any number

Read more

Upcasting and Downcasting in Java

In this tutorial we are going to understand the concept of upcasting and downcasting in Java with example and learn about their use in the modern programming techniques. Upcasting in Java Upcasting basically refers to moving up in the class hierarchy. So what does the last line mean? We are going to understand this using a simple example where Game is the base class and Cricket and Chess are two of its subclasses. Game.java

Cricket.java

Chess.java

UpCasting.java

Read more

Difference between ODBC and JDBC

Here you will learn about difference between odbc and jdbc in detail. ODBC and JDBC might look similar but they actually hold a good measurable field of differences among them. Although, both are used for database connectivity, their usage and features are quite apart from each other. Here is a brief introduction of the two. ODBC stands for the Open Database Connectivity. As it is very clear from the term itself, the ODBC lets you connect your program to the

Read more

Java is pass by value or pass by reference?

In this article we will learn about java is pass by value or pass by reference. It is very hard to say that unless we have deep understanding about pass by value and pass by reference. Pass by value: In pass by value when we are passing parameters to method they will be copied to other variables. Those copied variables will be the arguments of the method. So whatever modifications done by the method on variables will be restricted to

Read more
1 2 3 16