Question
JAVA QUESTION 2. Moving from left to right 20, 40, 10, 16, 14, 30, 80, 27, 50 where 20 being the first node, create a
JAVA QUESTION
2. Moving from left to right 20, 40, 10, 16, 14, 30, 80, 27, 50 where 20 being the first node, create a binary tree; then delete 20, write the output using in-order traversal _______________________
3.Person p = new Person(); will throw a compilation error, because
A. Person is created as an abstract class
B. Person is created as an interface
C. Person class only has a value constructor
D. Person class is a concrete class
1.Suppose your method does not return any value, which of the following keywords can be used as a return type?
A. void B. int C. double D. public E. None of the above
2.When constructor does not return any value, which of the following keywords can be used as a return type?
A. void B. int C. double D. public E. None of the above
3.The signature of a method consists of ____________
A. return type, method name B. method name and parameter list
C. return type, method name, and parameter list D. parameter list
4.All Java applications must have a method __________
A. public static Main(String[] args) B. public static Main(String args[])
C. public static void main(String[] args) D. public void main(String[] args)
E. public static main(String[] args)
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