70.4k views
4 votes
Which of the following is not a type of nested class?

a. inner
b. local
c. ambiguous
d. anonymous

User HonzaB
by
7.6k points

1 Answer

6 votes

Ambiguous is not a type of nested class.

c. ambiguous

Step-by-step explanation:

In computer programming languages class method or programming is used. Class or object is used in c++ or java.

But java has not having pointer so it has limitation of using class.

Inner class: - it is also as nested class where declared in inside the class to interface with other class.

Local: - it is local class declare to use inside the function or procedure

Ambiguous:- it is error on nested class

Anonymous: - it is class without proper declarations.

User Mandeep Janjua
by
5.5k points