QUESTION 12 Which of these is NOT a correct statement? Every class containing abstract method must...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
QUESTION 12 Which of these is NOT a correct statement? Every class containing abstract method must be declared abstract Abstract class can be initiated by new operator Abstract class can be inherited Abstract class defines only the structure of the class not its implementation QUESTION 13 Choose the TRUE declaration of an interface. public class A interface {} public class A implements interface {} public interface A {} public interface A () QUESTION 14 Which of the following is NOT an advantage of generic class? Generics promote recode usability Works with reference data type and primitive data type Create method that work with different data types Compile time error detection QUESTION 15 Which of the following statements is TRUE regarding method overriding? Method overriding satisfies both concept of inheritance and polymorphism Method overriding satisfies the concept of constructor Method overriding satisfies the concept of encapsulation Method overriding satisfies both concept of inheritance and encapsulation QUESTION 16 What is the output generated by the following piece of JAVA statement? double n] = {1,2,3,4,5}; n[2] =n[4]/2; n[3] = n[0] + n[0]; I for(int i=0;i<n.length; i++) System.out.printf("%.1f, ", n[i] ); System.out.println (); 1.0,2.0,3.0.4.0.5.0. 1,2,3,4,5, 1.0,2.0,3.0,1.0,2.0, 1.0.2.0, 2.5, 2.0, 5.0, QUESTION 17 Which among the following describes constructor overloading? Defining deconstructor with each constructor Defining more than one constructors with different signature in a single class Defining one constructor in each class of the program Defining more than one constructors in a single class QUESTION 5 What is the default value of the reference variable? None 0 default null QUESTION 12 Which of these is NOT a correct statement? Every class containing abstract method must be declared abstract Abstract class can be initiated by new operator Abstract class can be inherited Abstract class defines only the structure of the class not its implementation QUESTION 13 Choose the TRUE declaration of an interface. public class A interface {} public class A implements interface {} public interface A {} public interface A () QUESTION 14 Which of the following is NOT an advantage of generic class? Generics promote recode usability Works with reference data type and primitive data type Create method that work with different data types Compile time error detection QUESTION 15 Which of the following statements is TRUE regarding method overriding? Method overriding satisfies both concept of inheritance and polymorphism Method overriding satisfies the concept of constructor Method overriding satisfies the concept of encapsulation Method overriding satisfies both concept of inheritance and encapsulation QUESTION 16 What is the output generated by the following piece of JAVA statement? double n] = {1,2,3,4,5}; n[2] =n[4]/2; n[3] = n[0] + n[0]; I for(int i=0;i<n.length; i++) System.out.printf("%.1f, ", n[i] ); System.out.println (); 1.0,2.0,3.0.4.0.5.0. 1,2,3,4,5, 1.0,2.0,3.0,1.0,2.0, 1.0.2.0, 2.5, 2.0, 5.0, QUESTION 17 Which among the following describes constructor overloading? Defining deconstructor with each constructor Defining more than one constructors with different signature in a single class Defining one constructor in each class of the program Defining more than one constructors in a single class QUESTION 5 What is the default value of the reference variable? None 0 default null
Expert Answer:
Answer rating: 100% (QA)
The detailed answer for the above question is provided below Answer Question 12 Abstract class can be initiated by new operator Question 13 public interface A Question 14 Compile time error detection ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
please solve fast nee durgently You are given an array a comprising n integers. You have to calculate the magic value of the array a. Magic value of an array is equal to the difference between the...
-
Could you please solve it step by step and fast I have 30 minutes For this system, it is desired to design a state feedback control system that meets the following criteria. Status feedback will be...
-
Please do it fast it's urgent Activity: Please help me with this one by answering it correctly. Talk to several people about how they would choose a hotel in a city they have never been to before, a...
-
What is the is the effect of abolition of an import quota on (i) national saving, (ii) domestic investment, (iii) NCO, (iv) the real exchange rate, and (v) net exports?
-
Why is cheating a typical problem for cartels?
-
Nicky Pope filed a false imprisonment lawsuit against the Rostraver Shop n Save store (Shop n Save) and its manager, Howard Russell, on the basis of the incident described below. Pope and Russell...
-
Mackay Industries sales for the year ended December 31, 2010, were \($1,287,000\) and cost of goods sold amounted to \($707,000.\) Beginning inventory was \($58,000\) and ending inventory was...
-
Granger Supermarkets (GS) operates at capacity and decides to apply ABC analysis to three product lines: baked goods, milk and fruit juice, and frozen foods. It identifies four activities and their...
-
Please answer the following questions relating to how organisations are financed: a)Briefly list the different sources of financing available to organisations. b)Explain one advantage and one...
-
You talk to Sally about getting paid for the work you're doing. You suggest $25 an hour and she agrees. You are only doing this temporarily since you have some extra time so you set yourself up as a...
-
On a wind instrument (aerophone), the sound is produce by the air that vibrates inside the body of the instrument. This is referred to as the ___________. A. overtone series B. wind tunnel C. air...
-
how you write network id , first host last host and broadcast id? Calgary etwork 1 27 3 4 5 Servers monton etwork 1 2 3 4 incouver etwork 12 3 10.91.0.0/16 Hosts needed 55 120 68 499 33 25...
-
An object with a mass of 44.2 pounds is moving with a uniform velocity of 40.2 miles per hour. Calculate the kinetic energy of this object in joules. (Enter your answer to three significant figures.)...
-
Explain the significance of advanced seismic design methodologies, such as performance-based earthquake engineering (PBEE) and seismic base isolation, in creating resilient structures capable of...
-
An 80.0 kg man is standing on a scale calibrated in newtons inside an elevator. Determine the apparent weight of the man as shown by the scale as the elevator is a. stationary. b. accelerating...
-
If one 12 oz can of soda contains 40 grams of sucrose and you drank one can of soda each day, how many pounds of sugar would you ingest in a year?
-
Raymond is facilitating a series of interviews to gather in-depth qualitative data about people's perspectives on environmental change. Raymond has not specified a sample size for the study in...
-
Find the volume of the described solid S. A frustum of a right circular cone with height h, lower base radius R, and top radius r -r- --R
-
The point of attachment for two sister chromatids is the a. Centriole. c. Chromosome. b. Centromere, d. Karyotype.
-
What are the two types of cells found in nervous tissue? Briefly describe the structure and function of each,
-
Describe how the eukaryotic cell gained mitochondria and chloroplasts.
-
Solve Chapter Problem 13.21, assuming the force is narrowband with a power spectral density given by \(S_{F}(\omega)=\frac{3 \times 10^{-3}}{2+5 \omega^{2}}\). Data From Chapter Problem 13.21: A SDOF...
-
Solve Chapter Problem 13.21, assuming the power spectral density is band limited with \(\omega_{1}=50 \mathrm{rad} / \mathrm{s}\) and \(\omega_{2}=200 \mathrm{rad} / \mathrm{s}\). Data From Chapter...
-
Fine Leather Ltd has provided the following production and sales information for each pair of its dress shoes. The fixed costs for the period are \($1\) 125 000. Required (a) Calculate the...
Study smarter with the SolutionInn App