answersLogoWhite

0

What is an attribute in java?

Updated: 8/11/2023
User Avatar

Wiki User

12y ago

Best Answer

The attributes in schema are defined like kid elements. In order to have the attributes the element has a complex type.

Attribute are the set of data elements that define the object. The declaration of an object attribute take the following form:

<modifier> <type> <name> = initial_value;

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

Attributes in Java are fields where information can be entered. Attributes or fields are either public variables or constants that can be directly accessed.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Ow my spleen!

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an attribute in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are setters and getters?

As the name suggest Setters are to set value of an attribute and Getters are to get value of an attribute. sometime they are also called java beans.


Which attribute is used in script tag to specify a file containing the java script statements?

The script tag will have the "src" attribute to identify the location of the script's contents.


What is function in Java Script?

function in the scripting language can give an attribute to something to make it preform a task that you want it to handle.


Why you use documentgetElementByIddemo in java script?

DocumentgetElementByID is used to refer a attribute by it's id. This will get the element with the id defined anywhere in the page.


What is inheritance in core java?

Inheritance is the ability to derive and use other class's attribute and behavior. It results in the reduction of coding lines and the reuse of same codings in some other places. It is an important concept for java and makes to program easily...


How can you disable a particular part in the source code of CSS?

Put /* block comments */ around it, for example: style { attribute: value; attribute: value; attribute: value; } style { /* attribute: value; */ attribute: value; attribute: value; } or style { /* attribute: value; attribute: value; */ attribute: value; } or /* style { attribute: value; attribute: value; attribute: value; } */ And while this won't validate, attribute renaming uses a lot less typing (and I use it myself): style { xattribute: value; attribute: value; attribute: value; }


Which is an attribute?

It is an attribute.


What is complex attribute in dbms?

Complex Attribute: A complex attribute is an attribute that is both composite and multivalued.


Is strong an attribute?

Strength is an attribute.


What are the tpes of Bakugan?

there is ventus the wind attribute it is green, subterra earth attribute it is brown, pyrus fire attribute it is red, aquos water attribute it is blue, haos the light attribute it is white, and darkus the darkness attribute it is black.


What is derived attribute?

Attribute whose value may be calculated (derived) from other Attribute


Differences between metadata and attribute data?

Metadata is the data that describes information: language, who it is for, the source etc. Attribute data is composed of the attribute name and attribute value for example: "Color=red" where color is the attribute name and red is the attribute value.