Java if statement | Java if-else statement | Multiple conditions & Shorthand

Java if statement is checking a condition, then do the action accordingly. Where In Java if-else statement, it makes more correctly and broadway to get logic. Every programming language or application without logic can’t be complete. The if-else condition statements provide logic in the program. If conditions statement decision has to states: True or False, Boolean data type. Read More…


Java int | Range & Size | Primitive Data Type | Examples

Java int is Primitive Data Type, and Integer is a wrapper class. In Java, all data types variables must first be declared before they can be used. If you think about Java int is the same as a number, you might be right or wrong because in programming it about memory allocation of particular variables. So Number further has Read More…


Java Integer Class | Methods | Integer Wrapper Class Example

Java integer class is a Wrapper class and comes Under the java.lang.Number package. This class has wraps a value of the primitive type int in an object. Only single fields can contain Integer object with type int. Integer Compatibility Version: JDK 1.0  Instantiate Integer Wrapper Class Here is the simple syntax of use Integer in Java. Using a new keyword Read More…


Java Data Types | Primitive & Non-primitive (Object) with Examples

When you are Creating variables in Java, that time you need to define a data type with the varible name. The varible memory allocating (size) is depended on Java data types. This Tutorial you will learn about basic of data types in Java. There are 2 data types in Java, then further divided into many parts as Read More…


Java Variables Declaration | Types – Scope with Examples

A Java Variables is a container which store (hold) the value of unit like Strings, Integers, Boolean, etc. Any Variables are assigned to its data type. Where In Java 2 types of data type – primitive and non-primitive. So if Variables are a store or hold the value of then there is should be memory involved, when Read More…


Java Constructor | Default | Class | Types with Examples

A Java Constructor is a method, it’s invoked when a new object of the class has created and memory allocated to the Object. It has the same name as a class name and looks similar to a method but without return any value (no return type). This is a java constructor definition. The main reason to use constructor is the Read More…


Java Methods | Types | Calling & Parameters Methods example

A Java Methods or Function is a group of the statement, which performs a particular operation. You can also call it’s a piece of code with its own functionally, and make your application code more neat and clean. Don’t confuse with methods and Functions, both are the same. The different-different programming language used a different name for it. Read More…


Java Array | Initialization | Length | Methods | Types with Examples

Java Array is an object that contains elements(items) of a similar data type. For example data of Integer or Strings etc. Java Array is a fixed number of Homogeneous (same kind) data with indexing of every element. This is a very useful data type in java. In this Java array tutorial you will learn about what Read More…


Java Object | Class | Array | Clone Copy | Examples

What is Object and Java Object? The object has state, identity, and behavior in the real world e.g. bike, orange, pen, car, etc. Where in the programming world an object is represented real entities. Class Object The object is topmost or root of the class hierarchy in java. Every class has an Object as a Superclass.Since: Read More…


Java Class | Declaration | Types | Constructor | Example

What is the Java Class?  Java Class is a blueprint (template or prototype) for any object or instance. The class has a group of common properties, methods, blocks, nested classes, etc, which are common for any object. A Class and objects are Object Oriented Programming  (OOP) concepts.  Java supports all OOP concepts because it is Read More…