learn java

Java Literals

Literals A constant value in Java is created by using a literal representation of it. For example, here are some literals: an integer literal 100 floating-point literal 98.6 character constant literal ‘X’ string literal “This is a test”. A literal can be used anywhere a value of its type is allowed.

Java Identifiers

In programming languages, identifiers are used for identification purpose. In Java, an identifier can be a class name, method name, variable name or a label. For example : public class Test { public static void main(String[] args) { int a = 20; } } In the above java code, we have 5 identifiers namely : […]

Java Lexical Issues or Java Lexeme or Java Tokens

Java Tokens are the smallest individual building block or smallest unit of a Java program; the Java compiler uses it for constructing expressions and statements. Java program is a collection of different types of tokens, comments, and white spaces.

Matrix Multiplication Program in Java

Matrix Multiplication Program in Java

Matrix Program in Java

Matrix Program in Java

Bubble Sort Program in Java

Bubble Sort Program in Java to sort numbers of an array in ascending or descending order.

Linear Search Program in Java

Linear Search Program in Java

Largest in Array Program in Java

Largest in Array Program in Java

Reverse Array Program in Java

Reverse Array Program in Java

First Array Program in Java

First Array Program in Java

1 2 3 4 5 6 13