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

Perfect Number in Java

Here you will know about perfect number in Java with program and example. What is Perfect Number? The number said to be perfect number when sum of all positive divisors of that number excluding that number itself in divisors is equal to that number. Or, sum of all positive divisors of that number including that number is 2 times of the number. Key Points: The number of divisors of perfect number will be even. Most of the perfect numbers are

Read more

Eclipse vs Netbeans – Difference between Eclipse and Netbeans

In this article we will know about Eclipse vs Netbeans. Java is very good language for product development. But one drawback of java is even for small application we need to write more number of lines code. If we prefer IDE rather than text editor then it is much easier. IDEs will boost the programmer performance while writing code. Below I have compared the two most popular java ides. Image Source Eclipse vs Netbeans – Difference between Eclipse and Netbeans

Read more

Spring Bean Life Cycle

In this tutorial, we are going to learn about the Spring bean life cycle. It is root of Spring framework or to get into any IT company or to make any product in proper way in Spring. Definition: The sequence of changes which occurs in the spring bean is called spring bean life cycle from its initialization to its destruction. Spring life cycle tells us about how Spring bean will be maintained by Spring IOC Container. If you have not

Read more

5 Best Spring Framework Books in 2017

In this article we are listing out 5 best spring books for beginners. Spring is very light weight framework for developing enterprise applications. In the learning process of spring, first step is to know what spring framework is? We should have clear understanding about that and how it is useful for our applications and project then only we will be able to use spring efficiently. If we know why we are learning spring and its capabilities before learning then obviously

Read more

Spring Bean Scopes

In this tutorial we are going to learn about various kinds of bean scopes which are available in Spring framework. Spring Bean Definition Beans are objects which creates the backend of your any java enterprise application. Beans are maintained by Spring IoC container. Any bean is a simple object of bean class which is instantiated, configured and also maintained by Spring IoC container. These beans have some unique configuration metadata which developers supply to Spring IOC container. Developers provide Bean

Read more

Java Program for Shortest Job First (SJF) Scheduling [Preemptive & Non-Preemptive]

Here you will get java program for shortest job first (sjf) scheduling algorithm, both preemptive and non-preemptive. Shortest job first scheduling algorithm can also be known as shortest job next scheduling. It is very easy to implement and efficient in reducing average response time. Now we will see how it will work with the example and its implementation. In shortest job first, we should know the execution time of each process before running. This we can estimate in many ways.

Read more
1 2 3 15