2D Array in Java

2D Array in Java

In Java, multidimensional arrays are also applied as arrays of arrays. 2D(two-dimension i.e tabular form) array is the generally used and simplest multi-dimensional array(like excel sheet(grids)). 2D arrays are represented in a row-columns([3][4]) form, and the terms “rows”[3]  and  “columns”[4] are used in computing. Syntax…. Declaration – Syntax:                Data_Type[][] Array_Name = new int[Row_Size][Cols_Size];       … Read more

Access Modifiers in Java

Access Modifiers in Java

ACCESS MODIFIERS IN JAVA……. An access modifier is a reserved keyword, or we can say visibility controls, which is used to restrict access. We can use these access modifiers to determine whether a field or method in a class can be called or used by another class or subclass or not. That means these access … Read more

What is Java?

What is Java

JAVA  programming language was developed by Sun Microsystems(an American technology company) in 1991(developed by the team headed by James Gosling),. This language was originally called,  “Green talk”, After that, it was called “Oak” but was renamed(OAK  was already a trademark) “Java” in 1995. JAVA is a computer language to specify textual representation by writing source … Read more

How To Take Input From User In Java

How To Take Input From User In Java

How To Take Input From User In Java In this tutorial, I am going to show you how to take input from users in Java using two different ways. You can follow any method (Scanner or BufferedReader) according to your convenience. To understand how we get input from users in Java, we first must know … Read more

 DATA TYPES IN JAVA

DATA TYPES IN JAVA

 DATA TYPES IN JAVA Before we talk about data types, first we need to know about variables because data type is used with variables. Without variables, the meaning of the data type is nothing; it’s incomplete. Data types are used when you create variables in the program. Each variable is assigned a data type. A … Read more