Вы находитесь на странице: 1из 1

39. What is primitive analysis?

"primitive" to mean "a simple building block from which more complex concepts can be built." A primitive is a "built-in" data type. The only primitives in the Java language are byte, short, int long, float, double and boolean. In other words, these "primitives" actually manage the mechanics of establishing and controlling threads. analysis: The examination and evaluation of the relevant information to select the best course of action from among various alternatives.

40. What factors influence how long it takes to read or write a program's instance variable? What factors influence how long it takes to read or write a data element in a database? ans: In object-oriented programming, an instance variable is a variable defined in a class (i.e. a member variable), for which each object of the class has a separate copy, or instance. An instance variable is similar to and contrasts with a class variable. A class variable is defined using the static declaration modifier in languages like Java, C#, and C++. An instance variable is a class member that is defined without using the static modifier. A simple definition is that instance variables are things an object knows about itself, but the class does not know about. All instances of an object have their own copies of instance variables, even if the value is the same from one object to another. One object instance can change values of its instance variables without affecting all other instances. Changing the value of a class variable changes that value for all objects. Instance variables can be used by all methods of a class unless the method is declared as static. You access instance variables directly from their containing object instances.

Вам также может понравиться