In this article, we will discuss the difference between equals() method and “==” operator.
Posts in "Core Java"
Write Hello World program using Eclipse
In this tutorial, we will learn to create the Hello World application using Eclipse IDE. To understand the following material you should be familiar with using Eclipse.
Java developers must know..
Java Virtual Mechine. How it works? First jvm looks for main method in class.if exists then it will start executing from that Inside the Java virtual machine, threads come in two flavors: daemon and non- daemon. A daemon thread is ordinarily a thread used by the virtual machine itself, such as a thread that performs… Continue reading
Java Statements tutorial for Beginners
Here we will learn about statements in Java. Types of Java Statement Expression Statement Control Statement Assignment Statement In this section, we will discuss control statements.
Arithmetic Operators in java
In this section, we will learn about Arithmetic Operator Precedence and Operator Associativity.
Variables in Java
In Java, objects store their states in variables. These variables are used as containers to hold values (int, long, string…) during the life cycle of an application.
Java Class loader
Introduction : What is Classloader All class files in application are not loaded into memory at startup, but are loaded on demand as needed by the program, this loading of class is done by ClassLoader. ClassLoader is a part of JVM that loads classes into memory.
Variable shadowing
Today we’ll look into a rare feature of Java: variable shadowing First, let’s define what is a shadowed field or method: A field is considered shadowed when a subclass of its declaring class declares a field with the same name a variable having the same name and type is declared in the local scope a… Continue reading
Non Access Modifiers in Java
Access modifiers provide a mechanism for Access Control and different access modifiers can be used to achieve different accessibility. But Non Access Modifiers have nothing to do with accessibility. But it is used to determine specific characteristics of class/variable/methods etc. Below are the 7 Non Access Modifiers available in Java.
Access Modifiers in Java
Access modifiers (AM) in java help you set the level of access you want for your class, constructor, variables as well as methods. Access levels (Access Control) can be changed by using different access modifiers. There are three access modifiers but four access control. Default is the access control which will be set when one… Continue reading