Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A: Definitions and Short Answers i. List the eight primitive data types in Java. ii. List the non-access modifiers we have seen in class. Describe

image text in transcribed

A: Definitions and Short Answers i. List the eight primitive data types in Java. ii. List the non-access modifiers we have seen in class. Describe what each are used for iii. Briefly describe the entire process of writing a Java program to running in it from the command line. (Be sure to explain what javac and java are and what they do.) iv. In a Java program, why does main need to be public? v. In a Java program, the main method is static. What would be the consequences if vi. Suppose you have a final array of numbers as an attribute. Explain why you can or vii. Give a concise definition of a method signature. What is the method signature of the Java did not require this? (i.e., how would you run a program?) cannot change the numbers in the array. main method of any program in Java? viii. What is the difference between a primitive data type and a reference data type in Java? ix. Briefly describe the difference between a class attribute and an instance attribute x. Briefly describe the difference between a class method and an instance method. xi. In the statement System.out.println ("hello, world!");, explain what System, out and println each are xii. Briefly describe the difference between the stack and the heap in our memory model xiii. Briefly describe the four sections of the memory model discussed in class: stack, heap, data segment, code segment xiv. What is "this" in Java? xv. Briefly describe the two uses of this in a constructor. xvi. Briefly describe what an activation record is and what it is used for. xvii. Java provides eight primitive wrapper classes. Explain what they are xviii. Strings are immutable in Java. What does this mean? xix. Can a Java class have no constructors? (Explain yes or no.) xx, Given String s = new String ( "cat"); and String t = "cat", draw the box & arrow diagram for these two variables

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: 3

blur-text-image

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

What do you understand to be meant by LMS?

Answered: 1 week ago

Question

7. How might you go about testing these assumptions?

Answered: 1 week ago