Constructor in Java

In this tutorial, we will learn about Constructor in Java. The constructor looks exactly the same as a normal method but there is some difference between constructor and method check these: The contractor has no explicit return type Name of constructor would same as class name We can not make a constructor abstract, static, final, and

Constructor in Java Read More »

Class and Object in Java

In this tutorial, we will learn about Class and Object in Java. We are using the class keyword from our very first tutorial of this series. As we learned in previous tutorials Java is an Object-Oriented programming language. It means we can not write anything(variables and methods) outside the scope of the class. Class is a

Class and Object in Java Read More »

Jumping Statements in Java

In this tutorial, we will learn about Jumping statements in Java. Jumping statements are also part of control statements in Java. Jumping statements are used to send execution control to a specific statement in Java. Here we will learn three jumping statements in Java. break continue return break statement: Break statement is used to break the normal

Jumping Statements in Java Read More »

Looping Statements in Java

In this tutorial, we will learn about Looping Statements in Java. Looping Statements helps us to run a piece of code several times. Suppose you want to increment the value of a variable 100 times it means you have to write increment operator with that variable 100 times. Which would just increase workload. but with the help

Looping Statements in Java Read More »

Scanner class in Java

In this tutorial, we will learn about Scanner Class in Java. Scanner class in Java is used to get input from users as we use scanf() in C language. Scanner class is a predefined class in java which is present in java.util package. It means we have to import this package to use Scanner class in

Scanner class in Java Read More »

Operators in Kotlin

In this tutorial, we will learn about Operators in Kotlin. Operators are special symbols in Kotlin and we use operators to perform some special operators on operands. For example, the addition of two variables. In kotlin operators are categorised in various categories. Types of Operators: Arithmetic operators Relational operators Assignment operators Unary operators Bitwise operations

Operators in Kotlin Read More »

Type Conversion in Kotlin

In this tutorial, we will learn about Type Conversion in Kotlin. In simple words type conversion means converting variable of one data type into another data type. It is important to note in Kotlin doesn't support implicit conversion of smaller data type into larger data type. Invalid Type Conversion Example: var num1 = 10 val

Type Conversion in Kotlin Read More »

Data Types in Kotlin

In this tutorial, we will learn about available Data Types in Kotlin. Data Types are used to refer to the type and size of the value in a variable. The data types in Kotlin are divided into various categories and these categories are as follow: Number Character Boolean Array String Number: This category contains all

Data Types in Kotlin Read More »

×