+ 1
What are the benefits of ABSTRACT and INTERFACE in Java or in other? I really do not understand
What are the benefits of ABSTRACT and INTERFACE in Java? I really do not understand
20 ответов
+ 2
What is an Abstract Class in Java?
An abstract class is defined as a class that’s declared with the “abstract” keyword. It is a collection of common subclass characteristics that should include at least one abstract method. An abstract class can have multiple concrete methods. Programmers using Java 8 and later can also incorporate default and static methods.
An abstract class cannot be instantiated, meaning you cannot create an object with it.
Programmers use abstract class vs interface Java when they need:
Default functionality for subclasses
Templates for future specific classes
Defining a common interface for any subclasses
Code reusability
Before we begin with the abstract class vs interface in java difference, let us understand more about the interface in Java.
What is an Interface in Java?
An interface is a blueprint used to implement a class. It is a collection of abstract methods and contains no concrete methods, unlike abstract class. However, the interface offers full abstraction
+ 1
Coder Kitten thank u very very much! but what is the object oriented design patterns ? what a bout? and where i can learn that
thank u again🙏
+ 1
Coder Kitten Thank you very much, do I have to migrate to Kotlin for Android programming? Java does not work?
+ 1
Coder Kitten Thank you sir, you really helped me a lot in this way!
+ 1
you can start learning about design patterns on this website.
https://refactoring.guru
design patterns are really useful once you start designing large projects and have to structure your codebase to avoid technical debts.
java is actually one of the best language to learn design patterns as it was built to be an OOP intensive language.
0
Coder Kitten Wow this is a complicated topic! really thank you
0
Coder Kitten Excuse me, what language or topic do you think is best to learn after finishing Java if you share your experience? I'm very happy and thank you.
0
Excuse me, what language or topic do you think is best to learn after finishing Java if you share your experience? I'm very happy and thank you.
0
Coder Kitten Excuse me, I had another question, does JDBC do the same language tasks as PHP? I mean, with learning JDBC, there is no need for languages like PHP? (I'm sorry if I ask too many questions)
0
Coder Kitten That is, with PHP, you can connect to a database or send data, and so on, and JDBC does the same thing (I mean, it can be used for database-related tasks). I think learning PHP is good for this. What is your opinion in this regard?
0
I always think "why use Java when have C#"
just a personal view
0
Shen Bapiro wow!that was very good websit.thank u sir