If you don't supply any access specifier with class name than which specifier it should have?
It will have the default access which means - this class will be accessible only within the current package.
What benefits does inheritance bring to game programming?
It brings the general benefits of inheritance, which is that classes which are alike may share some features which are common for all of them.
example:
You are making a strategy game, and want to make lots of units to command and fight.
Class: Unit
has hitpoints, weapon strength, a name, etc..
Class: AirUnit
has all that Unit has, + a special flag that says that this unit can move trough places on the map with forest or ocean without penalty
Class: AttackHelicopter
has everything from Unit and AirUnit, + a flag that says the unit gets a bonus against enemy tank units, and does not require an airfield to land.
The benefits come from the fact that you can write one piece of code that can handle all types of units.
Your users can have a list of all their units
ArrayList
task forces can be made as lists, build queues for bases can use the same technique, etc..
No, that would be a constructor. A constructor is involved in creating objects.
Yes, provided those functions are declared virtual. If they are not virtual, the base class method is implicitly called instead. The base class should be thought of as a common interface to the objects that derive from it, while the derived objects are "more specialised" forms of the base class, which can override the virtual base class methods to produce more specific behaviour. The less derived the object, the less specialised it becomes.
Certain functions can be predicted for all derived objects, but cannot be implemented in the base class. For instance, all shapes can be drawn, but a shape base class cannot implement a Draw() function unless it knows what type of shape it actually is. But by deriving specific shapes such as circles and squares from the shape class, they can each provide their own implementations for the Draw() function, which can then be declared pure-virtual in the base class. This not only ensures that every derived shape provides its own Draw() method, but also ensures that no instances of shape can be created other than by derived objects. The shape then becomes abstract; so shape is a conceptual object while circles and squares are actual objects.
What is the definition of object consistency?
It's where a person reads each action of another person as if there were no prior context.
What is anonymous object in java?
Objects without their declarations known as Anonymous Objects. these are known as use & throw objects because these are died after one time use.
What is the difference between reference variable and painter variable?
Reference Variable
Pointer Variable
Why are the indents necessary after the if and else statement?
Indents are not necessary for simple if statements:
if (true) /* do something */ ;
else /* do something */;
However, when a statement is a compound statement, it's best to place the statement body on a separate line and indent it:
if (true) {
/* do something */ ; /* do something */ ; /* do something */ ;
} else {
/* do something */;
/* do something */;
}
The indents help the reader; separating the controlling expressions from the compound statements and thus exposing the structure of the if statement itself.
What is a characteristic of a contention-based access method?
It scales very well under heavy media use
Do all elements in a multidimensional array have the same data type?
That really depends on the programming language. In Java, the answer is basically "yes", although if you choose the "Object" data type you could probably accomodate different data types.
If you need collections of different data types - again, assuming Java - it is probably better to use some other structures, for better organization. For example, you can organize different data types into an object. Then you can collect various of those in an array. As an example, you can create an array of objects of a class "Person"; and you this class so that each Person has an age (type int), a name (type String), and any other information you need for your specific application.
What is Procedural Abstraction?
java supports procedural abstraction by means of constructors and methods. in java constructor and methods are always components of particular class. java supports coping parameter only.
procedural abstraction is a principle in which the particular language supports some features through which procedures are modelled in the class hiding other details.
How do you delete an array object in java language?
The Java Virtual Machine takes care of all the actual deletion for you. Once an object no longer has any references left, the garbage collector will come along and clear up that memory automatically.
What are the mathematical order of operators in Java programming?
Mathematical operators have the standard precedence: parenthesis (brackets), orders (powers), multiplication/division, addition/subtraction. x + y * z implies x + (y * z) because multiplication has higher precedence than addition. When two operators have the same precedence (such as addition and subtraction), they are evaluated left to right. Thus x - y + z implies (x - y) + z.
What is a type of spam that collects data from a user without his knowledge?
Spyware is a software that collects information from the user without their knowledge. It also called spybot or tracking software if it is obtained from the internet. Many of these software get automatically installed into the computer as a virus software or as a result of downloading materials from untrusted sources. They may also be installed when some of the deceptive add pop-ups on the internet are clicked.
What is acess spacifier in java?
An Access Modifier is a key word in java that determines what level of access or visibility a particular java variable/method or class has. There are 4 basic access modifiers in java. They are:
1. Public
2. Protected
3. Default and
4. Private
Private is the most restrictive access modifier whereas public is the least restrictive. Default is the access protection you get when you do not specifically mention an access modifier to be used for a java object.
How does strong typing help in reducing errors in programs?
You mean static typing, not strong typing. Strong typing simply means hit the keys harder!
Static typing means that the compiler knows the type at compile time and can therefore check to ensure that all operations upon those types conform to the operations expected of those types. Thus we cannot inadvertently make a silly error such as trying to multiply two strings together. Static typing also means that the compiler can optimise code to suit the specific types being operated upon, rather than generalising the code for a generic type.
What is a variable long mean in java?
long a=22342332;// declaring long values
memory size is 8 bytes
range is -9223372036854775808 to +9223372036854775807
Passive Electronically Scanned Array (PESA) and the Active Electronically Scanned Array (AESA) are basically same in technology and principles of operation , both systems are capable of steer its beam Electronically through utilization of Phase Shifter hence it could be made in fully solid state configuration where no moving parts required (like APG-77 Radar on F-22 or Zhuk-AE Radar onboard MiG-35) they're only differs in source of Radio Frequency (RF) source The AESA uses multiple numbers of Radiating Elements where each of them have their own Transmitter and Receiver Module, making the Antenna where those modules located become "active" because it can Radiate by itself While the PESA system uses common RF source that usually found in conventional Radar like Klystrons, Magnetrons and Travelling Wave Tubes (this one especially, most common in Airborne Application like Fighter Radar). In Terms of Advantages the AESA system is typically better than PESA because of following factors : 1.because the Antenna Elements contain its own Transmitter and Receiver modules and located Right behind the Radiator, it would have lower or even No accidental loss , unlike her PESA sister which still require a connection to be made between its RF source to Radiating elements , incidental loss may occur. 2. High fault tolerance, failure of some modules will not hamper the operation of Radar (typical AESA Radar may contain 100++ Elements) however the entire device would fail if the failure occurs in 10% of total module counts.
3.No Single Point Failure , since basically each modules in active Version contains its own transmitter and Receiver modules, the passive device however since it still use single Transmitter device like Traveling Wave tube , failure of the transmitter may hamper the RADAR operations
Answers by :Xenostrike 06 a.k.a Stealthflanker an Illegally Banned member from Electrosphere
EDIT- Bit improvements and adding single point failure in previous answer
Just to help point the above answer at the questions Passive systems have a single point of failure in its transmit devices (Travelling Wave Tubes,Wave Guides, Microstrips and Power Dividers as well as Antenna Feed System) . Active antenna do not have a single point of failure and a meant to degrades performance gracefully except probably malfunctions in its tapering systems or when the beam is steered in very high deflection angle which will reduce antenna effective Area, increase beamwidth hence reducing gain an compromise detection range. Active versions are much more flexible as phase can be varied in each or a groups of Radiating elements to create different waveforms or beamshapes .
Summarize the major accomplishments achieved during this performance appraisal period?
major accomplishments during performance during apprasial period
The import statement is always the first noncomment statement in a Java program file?
False. If your class belongs to a package, the package statement should be the first statement. Plus, it's possible that you're not using any resources outside the default java.lang package, and would have no need to import any additional packages.
What is the difference between vectors and arrays?
The abstraction are the same. However, the array may be of any objects, while a vector, in narrowed definition, each element is a scalar value (e.g, int, float, double, etc), to fulfill the abs(vector) = aScalarValue property of a vector. An array with the same data type would look exactly the same. But an array of Persons will be difficult to be a vector!
What are overriding objectives?
The objective of overriding in Java is to provide features for a class to define its own behavior even for cases where the super class that it extends has already defined one.
There might be cases where we want a specific behavior in our class but if the super class already has a method that does the same thing we wont be able to implement our behavior. Hence this overriding concept is available which lets us write our own implementation which would mask the code in the super class and let us run our logic.
How do you get java on school computer?
You should talk to whoever manages the software on school computers. They should be able to install Java for you, as long as you ask.