Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Question 1: In order to force a conversion from one data type to another we can use:

format controls

unification

upward compatibility

casting

Question 2: True or false: The logical OR operator has a higher precedence in Java than the logical AND, the conditional, and the equality operators.

True

False

Question 3: The logical AND operator in java is:

and

l l

+

&&

Question 4: True or False: To write a "definite loop" in Java, you use a loop control variable that has its value modified upon each iteration of the loop.

True

False

Question 5: How are entire arrays passed from one method to another?

by value

by reference

both a and b

none of the above

Question 6: True or False: If you do not explicitly create a constructor for a Java class then Java creates a default constructor for you.

 True

False

Question 7: True or False: Java enhances portability by consistently specifying the size and format of its primitive data types, regardless of the platform on which a Java program is running.

True

False

Question 8: If we want to allow a String to expand in size from its original size then we should use it to create an object of what class(es)?

Character

String

StringBuilder or StringBuffer

Buffer

Question 9: Which of these is not a Java primitive data type?

char

number

float

boolean

Question 10: True or False: The Java compiler converts source code into machine code that is specific to the host processor where it is being compiled.

True

False

Question 11: The portion of a program within which you can refer to a variable is called its

range

scope

limits

abstraction block

Question 12: Like most high-level programming languages, Java uses the one byte long ASCII code set for character representation.

True

False

Question 13: Overload methods must vary in their:

range

names

program placement

number of data types in their arguments.

Question 14: True or False: A non-void method must have a return statement that returns a value of the specified return type.

True

False

Question 15: True or False: Strings are an example of an immutable object.

True

False

Question 16: True or False: If you want to make sure that the code within the body of a loop may never get executed at all, you should use a do..while loop construct.

True

False

Question 17: True or False: Instance variables can be static.

True

False

Question 18: True or False:  One of the advantages of using a Java class is that all objects that are instantiated (created) from that class will have the same methods, therefore giving them the same "behavior."

True

False

Question 19: The hiding of data within an object of a class is made possible by which object-oriented concept?

inheritance

polymorphism

encapsulation

none of the above

Question 20: True or false: One of the advantages of Java abstraction is that in order to call the method of an object you only need to know its interface, not its implementation details.

True

False

Java, Programming

  • Category:- Java
  • Reference No.:- M91858267
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Java

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As