Page 1 of 1

(a) (i) Explain the difference between the following CSS style declarations. .java { font-size: 50%; font-style:italic;

Posted: Fri May 20, 2022 10:27 am
by answerhappygod
A I Explain The Difference Between The Following Css Style Declarations Java Font Size 50 Font Style Italic 1
A I Explain The Difference Between The Following Css Style Declarations Java Font Size 50 Font Style Italic 1 (91.39 KiB) Viewed 31 times
(a) (i) Explain the difference between the following CSS style declarations. .java { font-size: 50%; font-style:italic; color:red } #java { font-size:100%; font-style:bold; color:blue } (ii) Explain the difference between the following JQuery fragments, when applied to a DOM element referring to an input field on a form. $("#x").value() $("#x").value (45) (b) The following code fragment shows some prototype code for a site hit counter, which will be deployed as a JavaBean with application scope to count the total number of hits for several different pages. public class Counter { int x = 1; public int inc() { return x++; } } Explain why this counter might return an incorrect value when the page is accessed concurrently by more than one client. Describe how the code should be modified in order to prevent this error. (c) Briefly describe the main differences between JavaScript and Java with relation to their type systems and classes and objects.