Question
Consider the following Java code: class Animal
{ Â Â String type = "Generic Animal"; Â Â void eat() { Â Â Â Â System.out.println("Animal eats food."); Â Â } } class Dog extends Animal { Â Â String type = "Dog"; Â Â void bark() { Â Â Â Â System.out.println("Dog barks."); Â Â } } public class TestInheritance { Â Â public static void main(String[] args) { Â Â Â Â Dog myDog = new Dog(); Â Â Â Â System.out.println(myDog.type); Â Â Â Â myDog.eat(); Â Â Â Â myDog.bark(); Â Â } } What will be the output of this code?Solution
The correct answer is A
- 60% of 180 – 30% of 60 = 15% of ?
√ (573 – 819 + 775) = ? ÷ 3
118 × 6 + 13 + 83 = ?
What will come in the place of question mark (?) in the given expression?
(70 × 8 ÷ 10) × 5 = ?
What should come in place of the question mark (?) in the following question?
2 – [6 – {3 + (–4 + 5 + 1) × 8} + 12] = ?
Simplify the following questions:
(11) 8.5 × (121) 5.5 ÷ (1331) 5.5 = (11) ? Â
...√225 + 27 × 10 + ? = 320
If (3 × 144 – 252 ÷ 14) ÷ 18 = √1024 – x, then find the value of ‘x’.
2/5 of 3/4 of 7/9 of 7200 = ?
672 ÷ 28 × 24 + 363 – 309 =?