Computer Science, asked by pandeyanushka612, 2 months ago

3. Which concept of Java is achieved by combining methods and attributes into a
class?
B. Abstraction
A. Encapsulation
C. Polymorphism
D. Inheritance
4. When a class serves as base class for many derived classes, the situation is called
A. polymorphism
B. hierarchical inheritance
C. hybrid inheritance D. multipath E. inheritance
none of these
5. Which of the following is not a non-primitive data types?
A. Class
B. String
C. Character
D. Array
6. The case label in a switch-case statement is not of data type.
A. byte
B. short
C. int
D. String
give me right answer ​

Answers

Answered by bhavyavenna
1

3)B. Abstraction

4)B. Hierarchical Inheritance

Hope it helps!

Pls make me the brainliest

Answered by mallikactps
3

Q3.

Which concept of Java is achieved by combining methods and attributes into  a class

ANS: Encapsulation

Q4.

When a class serves as a base class for many derived classes, the situation is called

ANS: Polymorphism

Q5.

Which of the following is not a non-primitive data type?

ANS: Character

Q6.

The case label in a switch-case statement is not of data type.

ANS: String

Hope this will help.

Please make it Brainliest.

Similar questions