literals in java
Literals are number, text, or anything that represent a value.
In other words, Literals in Java are the constant values
assigned to the variable.
It is also called as constants........
literals in java
Literals are number, text, or anything that represent a value.
In other words, Literals in Java are the constant values
assigned to the variable.
It is also called as constants........
what is a literal in java
public class Test {
public static void main(String[] args)
{
int a = 101; // decimal-form literal
int b = 0100; // octal-form literal
int c = 0xFace; // Hexa-decimal form literal
int d = 0b1111; // Binary literal
System.out.println(a);
System.out.println(b);
System.out.println(c);
System.out.println(d);
}
}
what is a literal in java
public class Test {
public static void main(String[] args)
{
int a = 101; // decimal-form literal
int b = 0100; // octal-form literal
int c = 0xFace; // Hexa-decimal form literal
int d = 0b1111; // Binary literal
System.out.println(a);
System.out.println(b);
System.out.println(c);
System.out.println(d);
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us