Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with the following assignment for intro to Java Match the following terms to the definition below. Note that there are more terms

I need help with the following assignment for intro to Java

Match the following terms to the definition below. Note that there are more terms than definitions.

0

1

%f

%d

%n

default package

double

float

instance variables (primitive-type)

int

java.lang package

local variables (primitive-type)

new

nextDouble

nextLine

private

public

void

Which term from the above word bank matches each description below?

The larger primitive data type that can store floating-point numbers

This Scanner method reads characters until a newline character is encountered

Each class declaration that begins with this keyword must be stored in a file that has exactly the same name as the class and ends with the .java filename extension

If a method returns nothing, then its return type is this

This format specifier is used to output floating-point numbers

How many parameters are passed to the default constructor?

This keyword request memory from the system

These variables are initialized to their default values

Class String is in this package

When classes are compiled in the same directory, they are considered to be in the same package, also called this

Answer the following questions:

What is the default constructor?

When is the default constructor not created by Java?

Classes in which packages do you not need to import?

What is the typical return type for a set method?

Describe the three compartments of a UML Class diagram

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_2

Step: 3

blur-text-image_3

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

=+What is the big message you want them to know?

Answered: 1 week ago