Final (Java) (original) (raw)

About DBpedia

In the Java programming language, the final keyword is used in several contexts to define an entity that can only be assigned once. Once a final variable has been assigned, it always contains the same value. If a final variable holds a reference to an object, then the state of the object may be changed by operations on the object, but the variable will always refer to the same object (this property of final is called non-transitivity). This applies also to arrays, because arrays are objects; if a final variable holds a reference to an array, then the components of the array may be changed by operations on the array, but the variable will always refer to the same array.

Property Value
dbo:abstract In the Java programming language, the final keyword is used in several contexts to define an entity that can only be assigned once. Once a final variable has been assigned, it always contains the same value. If a final variable holds a reference to an object, then the state of the object may be changed by operations on the object, but the variable will always refer to the same object (this property of final is called non-transitivity). This applies also to arrays, because arrays are objects; if a final variable holds a reference to an array, then the components of the array may be changed by operations on the array, but the variable will always refer to the same array. (en) En langage Java, le mot-clé final indique qu'un élément ne peut être changé dans la suite du programme. Il peut s'appliquer aux méthodes et attributs d'une classe et à la classe elle-même. Aussi, il peut s'appliquer sur les paramètres d'une méthode et sur les variables locales. Selon le contexte, on utilise final dans un souci de conception ou d'optimisation. Il est aussi utilisé avec le même rôle en PHP depuis la version 5 (en 2004). (fr) final – słowo kluczowe w języku programowania Java, które zależnie od użytego kontekstu oznacza niezmienność deklarowanego elementu. (pl) В мові програмування Java, final використовується в кількох варіантах для визначення чогось, що пізніше не може бути зміненим. final може використовуватися при роботі з даними, методами та класами. (uk) 在Java编程语言中,final关键字是指在一些情况下用来定义(修飾)一个只能被賦值一次的變量。因此一旦一个final变量被賦值,它的值就再也不能改變。而被final定義的类不能被繼承。被final定義的方法則不能被。 (zh)
dbo:wikiPageID 2414719 (xsd:integer)
dbo:wikiPageLength 16109 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID 1107471360 (xsd:integer)
dbo:wikiPageWikiLink dbr:Memoization dbr:Method_overriding dbr:Variable_(programming) dbr:Inline_expansion dbr:Inner_class dbc:Java_(programming_language) dbr:Run_time_(program_lifecycle_phase) dbr:Call_stack dbr:Keyword_(computer_programming) dbr:Static_linking dbr:C++ dbr:C_(programming_language) dbr:Just-in-time_compilation dbr:Data_type dbr:Machine_code dbr:Java_(programming_language) dbc:Articles_with_example_Java_code dbr:Instance_variable dbr:Method_(computer_science) dbr:Reflection_(computer_programming) dbr:Serialization dbr:Undefined_behavior dbr:Type_qualifier dbr:Class_(computer_science) dbr:Keyword_(computing) dbr:Mutable_object dbr:Constant_(computer_science) dbr:Immutability dbr:Compile-time
dbp:wikiPageUsesTemplate dbt:Cleanup_bare_URLs dbt:Further dbt:Lowercase_title dbt:Reflist
dcterms:subject dbc:Java_(programming_language) dbc:Articles_with_example_Java_code
rdfs:comment In the Java programming language, the final keyword is used in several contexts to define an entity that can only be assigned once. Once a final variable has been assigned, it always contains the same value. If a final variable holds a reference to an object, then the state of the object may be changed by operations on the object, but the variable will always refer to the same object (this property of final is called non-transitivity). This applies also to arrays, because arrays are objects; if a final variable holds a reference to an array, then the components of the array may be changed by operations on the array, but the variable will always refer to the same array. (en) En langage Java, le mot-clé final indique qu'un élément ne peut être changé dans la suite du programme. Il peut s'appliquer aux méthodes et attributs d'une classe et à la classe elle-même. Aussi, il peut s'appliquer sur les paramètres d'une méthode et sur les variables locales. Selon le contexte, on utilise final dans un souci de conception ou d'optimisation. Il est aussi utilisé avec le même rôle en PHP depuis la version 5 (en 2004). (fr) final – słowo kluczowe w języku programowania Java, które zależnie od użytego kontekstu oznacza niezmienność deklarowanego elementu. (pl) В мові програмування Java, final використовується в кількох варіантах для визначення чогось, що пізніше не може бути зміненим. final може використовуватися при роботі з даними, методами та класами. (uk) 在Java编程语言中,final关键字是指在一些情况下用来定义(修飾)一个只能被賦值一次的變量。因此一旦一个final变量被賦值,它的值就再也不能改變。而被final定義的类不能被繼承。被final定義的方法則不能被。 (zh)
rdfs:label Final (Java) (en) Final (Java) (fr) Final (Java) (pl) Final (Java) (zh) Final (Java) (uk)
owl:sameAs freebase:Final (Java) wikidata:Final (Java) dbpedia-fr:Final (Java) dbpedia-pl:Final (Java) dbpedia-sq:Final (Java) dbpedia-uk:Final (Java) dbpedia-zh:Final (Java) https://global.dbpedia.org/id/2XrRJ
prov:wasDerivedFrom wikipedia-en:Final_(Java)?oldid=1107471360&ns=0
foaf:isPrimaryTopicOf wikipedia-en:Final_(Java)
is dbo:wikiPageDisambiguates of dbr:Final
is dbo:wikiPageRedirects of dbr:Final_variables_in_Java dbr:Java_final dbr:Final_class dbr:Blank_final
is dbo:wikiPageWikiLink of dbr:Comparison_of_C_Sharp_and_Java dbr:Funarg_problem dbr:Final_variables_in_Java dbr:Final dbr:Inheritance_(object-oriented_programming) dbr:Immutable_object dbr:Object_copying dbr:Java_final dbr:Final_class dbr:Blank_final
is foaf:primaryTopic of wikipedia-en:Final_(Java)