Question
1) 40 + 0.23>=40.23 What is the data type of the expression value above? a.int b.String c.boolean d.None of the other answers 2) Which of
1)
40 + 0.23>=40.23 What is the data type of the expression value above?
a.int
b.String
c.boolean
d.None of the other answers
2)
Which of the following features supports multiple constructors in a Java class?
a.Overriding
b.Overloading
c.Inheritance
d.None of the other answers
3) Which of the following is used as the default layout manager of a JPanel in Java?
a.GridLayout
b.FlowLayout
c.BorderLayout
d.All of the other answers
4) What is the return type of the main() method, the entry point of Java program?
a.None of the other answers
b.int
c.String array
d.String
5) this.localVar = this.aMC(); Given the above valid statement, which of the following is correct?
a.This statement must be in a method body of the class itself.
b.All of the other answers
c.This statement indicates that the associated class has at least one field and one method.
d.This statement assigns a local variable with a value obtained from a method calling.
6) 1 + "2" + 1 * 2 What is the result value of the above expression?
a.None of the other answers
b."1212"
c."122"
d.1212
7)
for ( int abc = 9 ; abc > 3 ; abc = abc-3 ) { System.out.println(abc); abc += 1; } Given the above for-loop, which of the following is the list of abc values when it comes to the condition expression?
a.9, 7, 5, 3
b.None of the other answers
c.9, 7, 5, 3, 1
d.9, 7, 5
8)
strObj [ ] NumClass = new strObj [ String_Name ]; Given the valid statement above, which of the following is correct?
a.strObj is an object.
b.NumClass is a class.
c.String_Name is a number.
d.None of the other answers
9)
Which of the following is not a class type in Java?
a.ActionListener
b.String
c.None of the other answers
d.ArrayList
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