Computer Science, asked by satyamkumarking, 1 year ago

What is class declaration in Java?​

Answers

Answered by Anonymous
6

The class declaration component declares the name of the class along with other attributes such as class's superclass and whether the class is public, final or abstract.

MARK as brainaliest ❤️❤️

Answered by cabyzoey
4

Answer:

hello friend

Explanation:

Class Declaration component declares the name of the class along with other attributes such as the class's superclass, and whether the class is public, final or abstract... Class names must be a legal Java identifier and by convention, begin with a capital letter.

How Do You Declare a Class In Java

In general, class declarations can include these components, in order:

  1. Modifiers such as public, private, and a number of others that will encounter later.
  2. The class name with initial capitalized by convention.
  3. The name of the class's parent(superclass), if any, preceded by the keyword extends.

           

                           hope it helps you friend

Similar questions