Explain the use of wrapper classes for non-object data


Answer each question in 8 paragraphs (4 pages)-

1) Should there be a single programming language for all programming domains? Please use the concepts that you learned in this class to justify your answer.

2) Suppose that the vehicle registration department for the State of Florida is becoming decentralized. Each county will now handle its own registration process and will issue its own license plates. However, there needs to be some centralized checking so that counties do not duplicate plate design, etc. Counties also need to notify each other if an address listed for a registration is not within their county.

The county systems must also interface with State systems for tax and other purposes. So, while the system will be mostly decentralized, there will still exist a need for centralized data access. A consulting firm was hired to develop this system and they have narrowed the choice of programming language to Java and C#. Which language do you think would be more appropriate or this application and why?

3) Variant record types are not as popular in modern programming languages as they were in the past. For example, Java does not have variant record types. Why do you think variant record types aren't seen in many modern languages? Can you simulate variant record types in Java? If yes, explain how (and to what extent). If not, explain why not. Please use examples to justify your answer.

4) Explain the use of wrapper classes for non-object data types in object oriented languages? Why are they necessary? Should the syntax of wrapping/unwrapping be invisible to the programmer?

5) Give an example of where a functional language is significantly superior to an imperative language at solving a specific task.

 6) Do generics makes more sense in statically typed or in dynamically typed languages? Explain your answer.

7) Give an example of using a co-routine in which it is not possible to use a subroutine to accomplish the same task.

8) Many languages support the concept of abstract data types. However, languages seem to have various levels of implementation of this concept. Why do you think these different levels or categories exist?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Explain the use of wrapper classes for non-object data
Reference No:- TGS01708154

Expected delivery within 24 Hours