concept abstract in category java

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.
Since local variables can’t be defined using an explicit access modifier, you can’t define a variable with var using any of access modifiers (private, package-private, protected, public). Also, local variables can’t be defined as static or abstract members. The only non-access modifier that you can use with a local variable is final:
For example, if you add the keyword abstract to the definition of a class, it can’t be instantiated. Such is the magic of the nonaccess modifiers.
An abstract method doesn’t have a body. Usually, an abstract method is implemented by a derived class. Here’s an example:
abstract class Person { private String name; public void displayName() { } #A public abstract void perform(); #B }
Exam Tip A method with an empty body isn’t an abstract method.
Figure 11.10 What happens when you change a static method in an interface to a default or abstract method
![]()

This is an excerpt from Manning's book OCA Java SE 8 Programmer I Certification Guide.
The derived class implements an abstract method defined in a base class or interface The derived class overrides a non-abstract method defined in a base class
You can implement inheritance by using either a concrete class or an abstract class as a base class, but there are some important differences that you should be aware of. These are discussed in the next section.
An abstract method is used to specify a behavior (set of methods), which must be defined by the class that implements it. It’s another way of stating “a class supports a behavior, but in its own manner” in the way it likes. In the following example, the interface Interviewer defines an abstract method conductInterview.
An abstract method is defined without a method body:
![]()
You might include the keyword abstract to define an abstract method in an interface. The following definition of the method conductInterview is the same as its definition in the preceding code:
Figures 6.2 and 6.3 showed how you can pull out the common properties and behavior of a Programmer and Manager and represent these as a new class, Employee. You can define the class Employee as an abstract class, if you think that it’s only a categorization and no real Employee exists in real life—that is, if all Employees are really either Programmers or Managers. That’s the essence of an abstract class: it groups the common properties and behavior of its derived classes, but it prevents itself from being instantiated. Also, an abstract class can force all its derived classes to define their own implementations for a behavior by defining it as an abstract method (a method without a body).