+ 1
Is there an abstract data type like abstract method in java?
I know there is abstract method in abstract class , but i don't if there is called abstract data type which is declared using abstract modifier.
2 Answers
+ 1
Abstract is a non-access member modifier and is not used with variables of any data type. It is used to achieve abstraction in Java, variables can be declared final if they are not meant to be modified.
0
I hope you are not asking about Java Abstract Data Type in Data Structure ā ADT.
In Java abstract data type, we can only know what operations are to be performed and not how to perform them i.e. it does not tell how algorithms are to be implemented or how the data will be organized in the memory. This type is thus called abstract as it does not give the view of implementation.
The types of Abstract Data Type in Java: List ADT, Stack ADT, and Queue ADT