This HTML5 document contains 46 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

Namespace Prefixes

PrefixIRI
dctermshttp://purl.org/dc/terms/
dbohttp://dbpedia.org/ontology/
foafhttp://xmlns.com/foaf/0.1/
n8https://books.google.com/
n11https://global.dbpedia.org/id/
n9http://dl.e-book-free.com/2013/07/
schemahttp://schema.org/
dbthttp://dbpedia.org/resource/Template:
rdfshttp://www.w3.org/2000/01/rdf-schema#
freebasehttp://rdf.freebase.com/ns/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
owlhttp://www.w3.org/2002/07/owl#
wikipedia-enhttp://en.wikipedia.org/wiki/
dbphttp://dbpedia.org/property/
dbchttp://dbpedia.org/resource/Category:
provhttp://www.w3.org/ns/prov#
xsdhhttp://www.w3.org/2001/XMLSchema#
goldhttp://purl.org/linguistics/gold/
wikidatahttp://www.wikidata.org/entity/
dbrhttp://dbpedia.org/resource/

Statements

Subject Item
dbr:Heap_pollution
rdf:type
owl:Thing dbo:ProgrammingLanguage wikidata:Q315 dbo:Language wikidata:Q9143 schema:Language
rdfs:label
Heap pollution
rdfs:comment
In the Java programming language, heap pollution is a situation that arises when a variable of a parameterized type refers to an object that is not of that parameterized type. This situation is normally detected during compilation and indicated with an unchecked warning. Later, during runtime heap pollution will often cause a ClassCastException. Heap Pollution in a non-varargs context
dcterms:subject
dbc:Java_platform
dbo:wikiPageID
15399561
dbo:wikiPageRevisionID
1001954820
dbo:wikiPageWikiLink
dbr:Type_system dbr:Implementation_(computer_science) dbr:Generics_in_Java dbr:Reification_(computer_science) dbr:Memory_management dbr:Type_conversion dbr:Exception_handling dbr:Compile_time dbr:Java_programming dbr:Runtime_(program_lifecycle_phase) dbc:Java_platform dbr:Variadic_function dbr:Java_syntax dbr:Interface_(Java)
dbo:wikiPageExternalLink
n8:books%3Fid=mh-KAwAAQBAJ&pg=PA81 n9:java_7_new_features_cookbook.pdf n8:books%3Fid=CwSaQpCtfPkC&pg=PA211
owl:sameAs
n11:4kGkU freebase:m.03m7386 wikidata:Q5691516
dbp:wikiPageUsesTemplate
dbt:Reflist dbt:Prog-lang-stub dbt:Cite_book dbt:Orphan dbt:Subscription_required
dbo:abstract
In the Java programming language, heap pollution is a situation that arises when a variable of a parameterized type refers to an object that is not of that parameterized type. This situation is normally detected during compilation and indicated with an unchecked warning. Later, during runtime heap pollution will often cause a ClassCastException. A source of heap pollution in Java arises from the fact that type arguments and variables are not reified at run-time. As a result, different parameterized types are implemented by the same class or interface at run time. Indeed, all invocations of a given generic type declaration share a single run-time implementation. This results in the possibility of heap pollution. Under certain conditions, it is possible that a variable of a parameterized type refers to an object that is not of that parameterized type. The variable will always refer to an object that is an instance of a class that implements the parameterized type. Heap Pollution in a non-varargs context public class HeapPollutionDemo{ public static void main(String[] args) { Set s = new TreeSet<Integer>; Set<String> ss = s; // unchecked warning s.add(new Integer(42)); // another unchecked warning Iterator<String> iter = ss.iterator; while (iter.hasNext) { String str = iter.next; // ClassCastException thrown System.out.println(str); } }}
gold:hypernym
dbr:Situation
prov:wasDerivedFrom
wikipedia-en:Heap_pollution?oldid=1001954820&ns=0
dbo:wikiPageLength
3825
foaf:isPrimaryTopicOf
wikipedia-en:Heap_pollution
Subject Item
dbr:Heap_Pollution_(computer_science)
dbo:wikiPageWikiLink
dbr:Heap_pollution
dbo:wikiPageRedirects
dbr:Heap_pollution
Subject Item
dbr:Heap_pollution_(computer_science)
dbo:wikiPageWikiLink
dbr:Heap_pollution
dbo:wikiPageRedirects
dbr:Heap_pollution
Subject Item
wikipedia-en:Heap_pollution
foaf:primaryTopic
dbr:Heap_pollution