1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
hichkok12 [17]
3 years ago
12

Examine the following code. (1 point) Object obj = new Integer (5); Which of the following statements is true? The declared type

of obj is Object. The actual type is also Object. The declared type of obj is Integer. The actual type is Object. The declared type of obj is Object. The actual type is Integer. The declared type of obj is Integer. The actual type is also Integer. 2. Examine the following code. (1 point) class D {} class C extends D {} class B extends D {} class A extends B {} Which of the following statements will compile without error? OA a = new B(); OB b = new DO); OCC = new AO; OD d = new A);
Examine the following code.
(1 point) class One { public void print() { System.out.println("One"); } class Two extends One { public void print() { System.out.println("Two"); } class Three extends Two { public void print() { System.out.println("Three"); } Which of the following code fragments will compile without error and display something other than the word, "Three"? One w = new Three(); w.print(); Three x = new One(); x.print(); One y = new Two(); y.print(); Two z = new Three(); z.print();

(1 point) Suppose that class Alpha is the parent of Beta and Beta is the parent of Charlie. Method calculate() is defined in Beta and is inherited and overridden by Charlie. Which of the following code fragments shows a valid method call? Alpha k = new Beta(); k.calculate(); Alpha k = new Charlie(); k.calculate(); Beta k = new Charlie(); k.calculate();
Charlie k = new Object(); k.calculate(); 5. What is the output of the following program?

(1 point) public class Circle { private double radius; public Circle( double radius) { this.radius = radius; public static void main(String[] args) { Circle x = new Circle(5); Circle y = new Circle(5); Circle z = x; System.out.println(x.equals(y) + ", " + (x == z)); true, true true, false false, true false, false

6. Consider the following code. (1 point) ArrayList names = new ArrayList(); names.add("Alexa"); names.add("Bill"); names.add("Christine"); Which of the following statements will display, "Alexa"? System.out.println(names.get()); System.out.println(names.retrieve()); System.out.println(names.get(1)); System.out.println(names.retrieve (1));
Which of the following statements will display, “Alexa"? System.out.println(names.get(0); System.out.println(names.retrieve (0)); System.out.println(names.get(1)); System.out.println(names.retrieve(1));

7. Which field or method of the ArrayList class will return the number of elements stored in the ArrayList? (1 point) length length() size() capacity (1 point)

8. Which of the following sequences shows Java access modifiers in correct order from most restrictive to least restrictive? private, default, protected, public private, protected, default, public public, default, protected, private public, protected, default, private

9. Which of the following statements is true about the protected modifier? (1 point) A protected member can only be accessed by code in other classes in the same package. Not only can a protected member be accessed by code in other classes in the same package, it can also be inherited by a subclass, even if the subclass is in a different package. The public and protected modifiers are nearly identical except that protected level access can be turned on or off at runtime. The protected modifier should be used nearly all the time, even in combination with private and public, especially when sensitive data is involved.

10. Which of the following statements is true? (1 point) It is possible to create instances of a class marked final. It is possible to extend a class marked final. It is possible to override a method marked final. It is possible to override a method inherited from a class that is marked final. Finish Cancel
will give more point if you help

Will mark brainliest!!!!!! no bs answers
Computers and Technology
2 answers:
dmitriy555 [2]3 years ago
7 0

Explanation:

what is this this is very long question I cannot answer this right now I need time

DarShadoJR3 years ago
0 0

I don't think you did anything wrong, I wen't over this 4 or 5 time's and I didn't see anything out of wack.

You might be interested in
Explain the role of ICT in banks​
vladimir1956 [14]

Answer: ICT help banks improve the efficiency and effectiveness of services offered to customers, and enhances business processes, managerial decision making, and workgroup collaborations, which strengthens their competitive positions in rapidly changing and emerging economies.

Explanation: please give branliest I only need one more to make ace

7 0
3 years ago
Python coding beginners question
Llana [10]

Answer:

i really don't know

4 0
3 years ago
Read 2 more answers
Eniac was the first desktop computer. t/f
LekaFEV [45]

Answer:

The answer is "False".

Explanation:

ENIAC stands for Electronic Numerical Integrator and Computer, It was first developed in 1946. This computer use circuits and node that are interconnected with each other to show the result.

  • ENIAC was a firstly, Reconfigurable vacuum tube, that controls the unit and it doesn't store information
  • It takes a large room to set up the system, that's why it is not true.

6 0
4 years ago
Bro how the hell do u do full screen on windows
Rudik [331]

Answer:

You'll need to hold down/click<em> </em>f11 and fn at the same time.

If not that, try ctrl + shift + f5.

I can guarantee the first works; not too sure about the second.

Explanation:

Well, it's hotkeys, so...

<em>EDIT: The f5 command does nothing related to full screen, my bad.</em>

7 0
3 years ago
Read 2 more answers
Within the DNS system, a primary server (SOA) holds and maintains all records for the zone. Secondary servers will periodically
Anni [7]

Answer:

- When the primary SOA record serial number is higher than the secondary's

Explanation:

DNS(Domain Name System) is described as the distributed database that sometimes includes all the supporting hardware or software infrastructure. This system employs the internet to translate hostnames into IP addresses and provide other information related to domain.'

Under this system, the secondary name server would request the primary server to pass on a zone transfer 'in case the record serial number of the primary server zone is greater than the secondary.' <u>This will help in promoting forbearances against any kind of faults and also in establishing synchrony between the zone files</u>.

4 0
3 years ago
Other questions:
  • ​________ establishes a connection between the​ computers, sequences the transfer of​ packets, and acknowledges the packets sent
    11·1 answer
  • Which opera component is a solo performance
    10·2 answers
  • If you were to create a new app for a smartphone or tablet that does not already exist, what would you create?
    10·1 answer
  • Flowcharts allow you to more easily clarify among multiple potential solutions to a problem to see which solution is best.
    5·1 answer
  • Even if you cannot afford it you should donate at least 5 of your earnings to charity true or false
    8·1 answer
  • After fixing the format of her subheadings, she notices that she misspelled the name of one of the famous people
    7·2 answers
  • You can perform an in-place upgrade to Windows 7 from both Windows XP and Windows Vista
    10·1 answer
  • Q. Describe the T.V. as an ICT tool.​
    13·1 answer
  • What is 3x10? PLZZZZZ
    11·1 answer
  • Write a python program to calculate the sum of three numbers and as well require the user to input the numbers.​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!