Currently browsing tag

Core Java, Page 3

java-thumbnail

Java Access Modifiers

Questions to be answered: What are access modifiers and why do we need them in Java? What are the class-level and method-level …

java-thumbnail

Java Varargs

In this article, we will discuss about passing variable number of arguments to Java methods. Variable arguments feature was introduced in Java …

java-thumbnail

Java equals() and hashcode()

This tutorial explains the equals() and hashcode() method in simple terms. It is one of the confusing questions on the Java developer’s …

java-thumbnail

Java Math.random() Example

In Java, there is a method random() in the Math class, which returns a double value between 0.0 and 1.0. Note that …

java-thumbnail

Java Immutable Objects

Objects whose state can’t be changed after its creation are called immutable objects. It is considered an effective strategy to make objects …

java-thumbnail

Stochastic Gradient Ascent

This article is based on Machine Learning in Action , published on February 2011. It is being reproduced here by permission from …