How Many Types of Memory Areas are Allocated by JVM?

JVM or Java Virtual Machine is a program that takes the Java byte code that is with a file.Class and converts the byte code into machine understandable language. Here byte codes indicate, a highly optimized set of instructions designed to be executed by the Java runtime system. JVM is also a significant part of JRE that is Java Runtime Environment. The other two parts of JRE are core classes and supporting files. We also know the applications of JAVA as WORA,

Read more

Real Time Example of Multithreading in Java

Thread: A sub-process or a smallest unit of processing, called thread. Generally a single thread work only on a single sub-process which may or may not be the part of whole processing to achieve any task. A thread is also a lightweight process. Multithreading: To complete any single process or to complete any task, if multiple threads are working simultaneously, then it’s called multithreading. Technically, all the threads do not execute simultaneously, but the time difference between the threads execution

Read more

Why Java Doesn’t Support Operator Overloading?

Unlike C++, Java does not support operator overloading. To overload the standard arithmetic operators e.g. +, -, * and / etc, Java doesn’t provide freedom to programmers. Java does not support operator overloading because by choice of its developers where they wanted to make it a simple language. Overloading of operator allows you to do something extra than default functionality or expected for. Every operator in java has a good meaning with their arithmetic operation it performs. Java only allows

Read more

Java FizzBuzz Program

In this article, we’ll talk about what is FizzBuzz and how to implement FizzBuzz in Java. What is FizzBuzz? FizzBuzz is a group game for children to understand the concept of division and multiplication. In which, each child counts the numbers (starting from 1) following these rules: if that number is divisible by ‘3’ then replace the number by word fizz. If that number is divisible by ‘5’ then replace the number by word buzz. In case that number is

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

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
1 2 3 4