Reference no: EM131745495
Answer questions
1). Primitive variable types are the most basic data types available within the Java language. There are 8: boolean , byte , char , short , int , long , float and double . These types serve as the building blocks of data manipulation in Java. Such types serve only one purpose which is containing pure and simple values of a kind.
How often do we use primitive variables when we are creating a code in a program?
Do we use them all the time or very seldom?
Any thoughts?
2). An operator, in Java, is a special symbols performing specific operations on one, two or three operands and then returning a result. The operators are classified and listed according to precedence order. Java operators are generally used to manipulate primitive data types. The Java operators are classified into eight different categories: assignment, arithmetic, relational, logical, bitwise, compound assignment, conditional and type comparison operators.
How do we know which operators to use in Java and when to use them?
Any thoughts?
3). The lifetime of a variable or object is the time period in which the variable or object has valid memory. Lifetime is also called "allocation method" or "storage duration."
So if an object does not have valid memory then it has a lifetime that is very short and nothing is stored or remembered.
The lifetime also depends on how much needs to be stored at that particular time.
Any thoughts?
4). Java is portable via the Java Virtual Machine that adapts to whatever environment in which it is implemented. Java encourages component re-useability through its capability of "Inheritance", which is a form of software reuse in which a new class is created by absorbing an existing class's members and embellishing them with new or modified capabilities.
With inheritance, you can save time during program development by basing new classes on existing proven and debugged high-quality software. This also increases the likelihood that a system will be implemented and maintained effectively.
Any thoughts?
5). what is a virtual machine and how does it differ from a "real" machine.
And ... what is a "machine" that we are talking about in this class?