Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. A _______ is a counterpart variant of a repository. It is comprised within the repository but does not affect the live version. Fork Branch

1. A _______ is a counterpart variant of a repository. It is comprised within the repository but does not affect the live version.

Fork
Branch
Pull
Commit
Clone
None of the answers are correct
User

Repository

Remote

2. What are all of the issues with the following piece of code?

public class whatAreTheIssues {

public static void Main(String[] args) {

Rectangle myRect;

myRect.width = 80;

myRect.height = 150;

System.out.println("myRect's area is " + myRect.area());

}

}

You can assume the function area() exists and the variables height and width also exits.

The class name is not in the proper naming convention for classes
The code never creates a Rectangle object
The variables height and width are not initialized properly
The main method parameter args should not be an array
The main method name should be all lowercase
The function area() does not exist
The main method should have more parameters
The print statement is not concatenating two strings properly

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

All Estonian schools are connected to the Internet.

Answered: 1 week ago