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
Vera_Pavlovna [14]
2 years ago
10

Insert XXX to output the student's ID. public class Student { private double myGPA; private int myID; public getID) { return myI

D; public static void main(String [] args) { Student s = new Studento; XXX System.out.println("Student ID: "); System.out.println("Student ID:" + getID()); System.out.println("Student ID:" + s.getId()); System.out.println("Student ID:" + student.getID()); A static main() _ has direct access to class instance members can declare and create objects can call instance methods without an object O can not be included within a programmer-defined class What is stored in score1, score2, and grade? Integer scorel = 72; int score2 = 85; Character grade = 'C'; obj reference, 85, obj reference 72,85, obj reference, obj reference, obj reference obj reference, obj reference, Which is true? Instances of programmer-defined objects are immutable Contents of a Double instance can be modified after initialization An instance of String stores data rather than an object reference Reference variables store memory locations
Computers and Technology
1 answer:
Aleonysh [2.5K]2 years ago
7 0

Answer:

Explanation:

The question above is missing many details and are actually various questions in one. I will answer each one seperately below...

A. The piece of code to get the ID in this code snippet that needs to replace XXX would be the following ... System.out.println("Student ID: " + s.getID());

B. A static main() can declare and create objects. Once these objects are created their instance methods can then be called.

C. Integer score1 = 72;

    int score2 = 85;

    Character grade = 'C';

     In the above code snippet, the information stored in score1, score2, and grade are the following... obj reference, 85, obj reference. This is becasue both Integer and Character are classes and the values being passed to their variables are referencing that object class, while score2 is a primitive type of int and is therefore simply a number.

D. The statement that is true is ... Contents of a Double instance can be modified after initialization. Objects can be modified by calling its setter methods after initializing it.

You might be interested in
Which of the descriptions listed below best describes the step in the reverse engineering process called functional analysis? A)
Zepler [3.9K]
If multiple choice then d and a if not then the best one would be a!


hope this helps!!
5 0
3 years ago
What is a popular use for SLR film cameras? (choose one)
Artemon [7]
Answer is c i believe
3 0
3 years ago
You will be creating a program that implements the Observer design pattern. This design pattern is utilized in almost all GUI sy
Nuetrik [128]
B
Is the correct answer
7 0
3 years ago
What options does the Table Tools Layout contextual tab contain? Select three options.
alex41 [277]

Answer:

This tab contains two tabs, Design and Layout that give you the ability to quickly format your table, insert or delete rows and columns, set the alignment for cells, and format the typography of the text in your table

Explanation:

4 0
3 years ago
Read 2 more answers
WILL GIVE BRAINLIEST AND HALLOWEEN CANDY!!!!!!!!!<br> who wants to talk?
Tamiku [17]
<h2>Sure, I wanna talk. (:      .........................</h2>
3 0
3 years ago
Other questions:
  • Submit your 300-word essay describing the equipment usedI in a well-equipped studio’s audio department and the training and expe
    8·2 answers
  • What is the name of the nearest major galaxy to Milky-Way ?
    10·1 answer
  • You have informed your users that you need to bring the machine down at the end of the day to perform routine maintenance. Howev
    14·1 answer
  • A hard disk has four surfaces (that's top and bottom of two platters). Each track has 2,048 sectors and there are 131,072 (217)
    11·1 answer
  • Part cost Calculator Modify the GUI in your program to look like the following GUI. To do that you need to add the following to
    13·1 answer
  • You turn your computer on and the computer will not boot up. What is something you should do to diagnose the problem?
    6·2 answers
  • You can minimize the Ribbon with a command contained on the _____.
    7·1 answer
  • You’ve just finished training an ensemble tree method for spam classification, and it is getting abnormally bad performance on y
    9·1 answer
  • In the game of $Mindmaster$, secret codes are created by placing pegs of any of seven different colors into four slots. Colors m
    5·1 answer
  • Name two materials that we can burn in order to get energy from biomass
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!