Answer Posted /

Is This Answer Correct ?    Yes No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is runtime broker using so much cpu?

452


What does the no logging option do? Why would we be careful of using it?

272


Late blight of potato and early blight of potato symptoms differences?

1515


Looking for Bently Nevada surplus 3300/52-01-00-00 Reverse Rotation Monitor , 4 pieces.

2965


What Is Checking Account?

614






Define an interface MilitaryPower that has the following properties: • The interface has two public static final variables which are the finite x and y coordinate (i.e. the distance of the objects should not exceed these values. These values set to 100. • The interface has a method move that moves the military power objects to the target value. The method will be implemented by the other classes. The return type should be void. B) Define an enum class Direction which contains the directions (EAST, WEST, SOUTH, NORTH). C) Define a concrete class Tank that implements MilitaryPower, has the following properties: • XCoordinate (Integer), YCoordinate (Integer) are the instance variables for this class. • All instance variables should be private. • Write a parametered constructor that takes two parameters assigning with the instance variables. • Write a set and get method each of the instance variables. • Write a method move that takes two parameters. One of them is distance which type is integer. Another is direction which type Direction. The method should to the following: o If the direction is EAST, set the x-coordinate with adding distance. o If the direction is WEST, set the x-coordinate and subtract distance from x-coordinate. o If the direction is SOUTH, set the y-coordinate with adding distance. o If the direction is NORTH, set the y-coordinate and subtract distance from x-coordinate. • Write a method toString to display the tank coordinates. D) Define an array holding 10 MilitaryPower objects, all of them being a Tank. Then display each of the object information on the screen. (display its movements and coordinates).

1698


Tell me what are the feature of laravel 5.0?

417


What is explicit mode in sql server?

521


What types of testing is specifically important for web testing?

658


What is internal iteration in java se 8?

619


What happens if time-only values are provided as date and time literals?

522


How will you add custom php codes in drupal pages or blocks?

173


While finalizing the current year’s profit, the company realized that there was an error in the valuation of closing stock of the previous year. In the previous year, closing stock was valued more by Rs.50,000. As a result (a) Previous year’s profit is overstated and current year’s profit is also overstated (b) Previous year’s profit is understated and current year’s profit is overstated (c) Previous year’s profit is understated and current year’s profit is also understated (d) Previous year’s profit is overstated and current year’s profit is understated

1780


How to enable recycle bin in hadoop?

443


Where do you use decode and case statements?

542