Open in app
Home
Notifications
Lists
Stories

Write
Dhanshree Shinde
Dhanshree Shinde

Home

Jul 19, 2020

Java User Input (Scanner)

Java User Input The Scanner class is used to get user input, and it is found in the java.util package. To use the Scanner class, create an object of the class and use any of the available methods found in the Scanner class documentation. In our example, we will use the nextLine() method, which is used to read Strings: Input Types In the example above, we used the nextLine() method, which is used to read Strings. To read other types, look at the table below:

Java

1 min read

Java User Input (Scanner)
Java User Input (Scanner)

Jul 19, 2020

Control Flow Statements in Java

In Java there are three types of control flow statements: Decision making statements: if, if else, nested if else Looping statements: while, for, do-while Branching statements: return, break, continue if: if statement is the most simple decision making statement. It is used to decide whether a certain statement or block…

Java

4 min read

Control Flow Statements in Java
Control Flow Statements in Java

Jul 19, 2020

Operators in Java

An operator is a character that represents an action, for example + is an arithmetic operator that represents addition. Types of Operator in Java Basic Arithmetic Operators Assignment Operators Auto-increment and Auto-decrement Operators Logical Operators Comparison (relational) operators Bitwise Operators Ternary Operator 1) Basic Arithmetic Operators Basic arithmetic operators are: +, -, *, /, % + is for addition.

Java

6 min read


Jul 11, 2020

Data Types in Java

Data types specify the different sizes and values that can be stored in the variable. There are two types of data types in Java: Primitive data types: The primitive data types include boolean, char, byte, short, int, long, float and double. Non-primitive data types: The non-primitive data types include Classes…

Java

3 min read

Data Types in Java
Data Types in Java

Jul 8, 2020

Java Variables

What is a Variable? A variable can be used as a container which holds value for you, during the life of a Java program. Every variable is assigned a data type which designates the type and quantity of value it can hold. Variable is name of reserved area allocated in memory. In other words…

Java

2 min read

Java Variables
Java Variables

Jun 30, 2020

Java Virtual Machine (JVM) & its Architecture

Java Virtual Machine (JVM) is a engine that provides runtime environment to run the Java Code or applications. It converts Java byte-code into machines language. JVM is a part of Java Run Environment (JRE). In other programming languages, the compiler produces machine code for a particular system. …

Java

3 min read

Java Virtual Machine (JVM) & its Architecture
Java Virtual Machine (JVM) & its Architecture

Jun 27, 2020

Introduction of Java and Features

Java is purely an object oriented programming language developed by James Gosling at Sun Microsystems, which is a supporter company of Oracle Corporation. Java’s most of the syntax and semantics are derived from C and C++. Java source code is first compiled into byte-codes which results in a class file…

Java

3 min read

Introduction of Java and Features
Introduction of Java and Features

Jun 27, 2020

Applications of Java

Some of the many applications of Java are: Desktop GUI Applications for Mobiles Embedded Systems Web Applications Application Servers Web Servers Applications for Enterprises Scientific Applications Big Data Technologies Business Applications 1. Desktop GUI Java has a lot of features which are particularly inclined towards GUI development. There are special packages such as…

Java

4 min read


May 19, 2020

Friend Function in C++

Friend Function Friend function can be given special grant to access private and protected members. Hope you enjoyed reading! Please clap you if you found this helpful! Thank you!

1 min read


May 17, 2020

Class and Object in Object-Oriented Programming

Class A class is a user-defined blueprint or prototype from which objects are created. It represents the set of properties or methods that are common to all objects of one type Example explained The class keyword is used to create a class called MyClass. The public keyword is an access specifier…

Objects

1 min read

Dhanshree Shinde

Dhanshree Shinde

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable