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

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

What is HashCode in Java?

Here you will learn about hashcode in Java. Hash code is an integer returned by hashCode() method. It has many advantages in different applications in java. Let us see how this method is giving hash code, how it is useful and what is the significance in java? What is HashCode in Java? Based on hash code we can keep objects in hash buckets. Some algorithms or data structures will use these hash buckets. Mostly hash based data structures like hashmap,

Read more

Why Java is Platform Independent Language?

In this article we will learn about why java is platform independent. Before getting into details of this first we should know what platform independence is. Platform Independence: It means if we have written a program it should run on any platform without any modifications. Platform means hardware + operating system. Why Java is Platform Independent Language? Java package is coming with JDK (Java Runtime Environment) and JRE (Java Runtime Environment). JDK will be useful for developing and compiling java code.

Read more

10 Reasons Why Java is Secure Language

In this article you will learn about why java is secure language than any other programming languages. It is a common question asked in java interviews. We know that java is really popular and widely used language. Security is the prime factor for java popularity. Lets discuss about the reasons why it is so secure. Image Source Why Java is Secure Language? Own Memory Management Java has its own memory management mechanism. It has automatic garbage collection system. User need

Read more

Difference between Method Overloading and Method Overriding in Java

Here you will learn about difference between method overloading and method overriding in java with program examples. When a class have methods with same name but different arguments list then it is called method overloading. On the other hand if two classes (parent and child) have methods with same name and same arguments list then it is called method overriding. There are various other differences between them that are discussed below in tabular form. Difference between Method Overloading and Method

Read more

Difference between Throw and Throws in Java

In this tutorial you will learn about difference between throw and throws keywords in java with example. When we run a java program which contains errors, programmers should handle errors by exception handling (using try, catch and finally blocks) or avoid (throw) it. Otherwise JVM will give error which causes the termination of the running program and loss of data that has been processed till that line of the program. Throw and Throws are two keywords used in java syntax

Read more
1 2 3