Java Concepts Answers
Java Concepts Answers
- Abstraction is the concept of hiding internal implementation and showing only essential features.
- Abstract classes
- Interfaces
- Encapsulation is the process of wrapping data and code together as a single unit.
str = str.toLowerCase();
if (Character.isLetter(c)) {
if ("aeiou".indexOf(c) != -1)
vowels++;
else
consonants++;
}
7. What is a wrapper class? Name all wrapper classes:
- byte - Byte
- short - Short
- int - Integer
- long - Long
- float - Float
- double - Double
- char - Character
- boolean - Boolean