English

What is meant by the term Declaration?

Advertisements

Question

What is meant by the term Declaration?

Very Short Answer
Advertisements

Solution

A declaration is a statement in Java that introduces a variable, method or class by specifying its name and other necessary information, such as its data type. It informs the compiler about the existence and type of the declared element.

shaalaa.com
  Is there an error in this question or solution?
Chapter 4: Objects - EXERCISE [Page 107]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 4 Objects
EXERCISE | Q 5. | Page 107
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×