Question
Please answer these and justify why they are correct. Thank you 1. What keyword is used to make a child class use a parent class?
Please answer these and justify why they are correct. Thank you
1. What keyword is used to make a child class use a parent class? a.) is a b.) extends c.) has a d.) inherits
2. Suppose you have the given code below. Scanner keyboard = new Scanner(System.in);
What would be the correct way to scan in an integer value from the keyboard. a.) scan.nextInt() b.) scan.nextDouble() c.) scan.nextLine() d.) keyboard.nextInt()
3. True or False. Arrays use sequential blocks of memory while linked lists do not use sequential blocks of memory. This is why nodes in a linked list have next values. a.) True b.) False
4. What is the correct way to declare and initialize a variable in Java? a.)
5. Suppose you have an array of 10 integers called arr. What is the correct way to change the third value of the array to 3? a.) arr[2] = 3; b.) arr[3] = 3; c.) arr = 3; d.) none of the above
6. True or False. Java is a functional programming language. a.) True b.) False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started