Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A: Definitions and Short Answers [15 marks i. List the eight primitive data types in Java. ii. In a Java program, why does main need

image text in transcribed

A: Definitions and Short Answers [15 marks i. List the eight primitive data types in Java. ii. In a Java program, why does main need to be public? iii. Give a concise definition of abstract data type. Use the definition from class iv. Briefly describe the differences between a stack and a queue. v. Briefly describe what a final class and what a final method are vi. Give a concise definition of a method signature. What is the method signature of the toString and equals methods from the Object class? vii. What is the difference between a primitive data type and a reference data type? viii. Briefly describe the difference between a class attribute and an instance attribute ix. Briefly describe the difference between a class method and an instance method. x. Briefly describe the four sections of the memory model discussed in class: stack, heap, data segment, code segment xi. Briefly describe the differences between the is-aand "has-a relationship of classes. xii. Briefly describe the difference between an abstract class and a concrete class xiii. Briefly describe the differences between an abstract class and an interface xiv. Briefly describe the similarities between an abstract class and an interface. xv. Ifa valid class implements the Comparable interface but does not override the compareTo method, what can be said about the class? xvi. Explain why a class cannot be both abstract and final. xvii. Briefly describe the differences between method overloading and method overriding. xviii. What is super in Java? xix. Briefly describe the use of super in a constructor xx. In a method body, what is this and what can you do with it? xxi. Java provides eight primitive wrapper classes. Explain what they are xxii. Can a Java class have no constructors? (Explain your answer.) xxii. What is Q0verride

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions