<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0"
>
integrity
=
"sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin
=
"anonymous"
>
</
script
>
<
style
>
h1 {
color: #006600;
text-align: center;
}
#btn{
text-align: center;
background-color:#006600 ;
color: white;
}
body {
text-align: center;
}
</
style
>
</
head
>
<
body
>
<
h1
> Geeks For Geeks</
h1
>
<
button
id
=
"btn"
> Click to see the effects</
button
>
<
div
>
<
p
>
When compared with C++, Java codes are
generally more maintainable because Java
does not allow many things which may
lead bad/inefficient programming if used
incorrectly. For example, non-primitives
are always references in Java. So we
cannot pass large objects(like we can do
in C++) to functions, we always pass
references in Java. One more example,
since there are no pointers, bad memory
access is also not possible.
</
p
>
</
div
>
<
script
>
$(document).ready(function (){
console.log("Document is ready")
$('#btn').click(function(){
$('p').fadeToggle(1000);
})
})
</
script
>
</
body
>
</
html
>