Short for character, which is a data type that holds one symbol
What is char?
100
This method returns the Uppercase form of the specified value.
What is toUpperCase() Method?
100
public class Test {
public static void main(String args[]) {
System.out.println(Character.toLowerCase('c'));
System.out.println(Character.toLowerCase('C'));
}
}
What is
c
c?
200
Short for American Standard Code Information Interchange, a 7 bit binary system
What is ASCII?
200
The method determines whether the specified char value is a letter.
What is IsLetter() Method?
200
public class Test {
public static void main(String args[]) {
System.out.println(Character.isUpperCase('c'));
System.out.println(Character.isUpperCase('C'));
System.out.println(Character.isUpperCase('\n'));
System.out.println(Character.isUpperCase('\t'));
}
}
What is
false
true
false
false?
300
Short for integer, which means whole numbers
What is an int?
300
The method determines whether the specified char value is a digit.
What is isDigit() Method?
300
public class Charchar {
public static void main(String args[]) {
int x = 'C' + 1;
System.out.println(x);
}
What is 68?
400
A sequence of characters
What is a String?
400
The method determines whether the specified char value is lowercase.
What is IsLowerCase() Method?
400
public class Test {
public static void main(String args[]) {
System.out.println(Character.isWhitespace('c'));
System.out.println(Character.isWhitespace(' '));
System.out.println(Character.isWhitespace('\n'));
System.out.println(Character.isWhitespace('\t'));
}
}
What is False
True
True
True?
500
A class used to wrap primitive data type char value in an object
What is a Character wrapper class?
500
The method determines whether the specified char value is a white space, which includes space, tab, or new line.
What is isWhiteSpace() Method?
500
public class Main {
public static void main(String[] args) {
char ch1 = 'a';
char ch2 = 65;
System.out.println("Value of char variable ch1 is :" + ch1);
System.out.println("Value of char variable ch2 is :" + ch2);
}
}
What is
Value of char variable ch1 is :a
Value of char variable ch2 is :A