subject
Computers and Technology, 20.11.2020 23:50 jro20

Which is the instance variable in the given code? public class Person{

public intpid;

private double salary;

public Person (intpersonID){
pid = personID;
}

public void setSalary(double empSal){
salary = empSal;
}

public void printDetails(){
System. out. println("id : " + pid );
System. out. println("salary :" + salary);
}

public static void main(String args[]){
Person P = new Person("P1");
P. setSalary(100);
P. printDetails();
}
}

A. public intpid;
B. private double salary;
C. intpersonID
D. double empSal
E. Person P = new Person("P1");


Which is the instance variable in the given code?

public class Person{
public intpid;
private dou

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
You know the right answer?
Which is the instance variable in the given code? public class Person{

public intpid;
Questions
question
Mathematics, 14.06.2020 23:57
question
Mathematics, 14.06.2020 23:57
Questions on the website: 13722363