Is there an abstract data type like abstract method in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

7th Mar 2020, 11:21 AM
D ̲E ̲S ̲S ̲I ̲E ̲- ̲B ̲A ̲H ̲I ̲R ̲U ̲
D ̲E ̲S ̲S ̲I ̲E ̲- ̲B ̲A ̲H ̲I ̲R ̲U ̲ - avatar
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.
7th Mar 2020, 11:32 AM
Avinesh
Avinesh - avatar
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
7th Mar 2020, 5:04 PM
ROBIN C R
ROBIN C R - avatar