Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 What is the major advantage of Java over other programming languages? it is easy to learn it executes faster it is platform independent

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
QUESTION 1 What is the major advantage of Java over other programming languages? it is easy to learn it executes faster it is platform independent it reduces programming errors QUESTION 2 What identifies a class constructor method? it has the word "constructor" in its title it has the same name as the class and is void it has the same name as the class without any parameters, not even void it must be named using upper case characters only QUESTION 3 In order to prevent "stale", i.e. out of date results, you should double check your math with a colleague always calculate results from actual stored values only check the precedence (order of operations) of your formulas use a hand-held calculator to check your math QUESTION 4 After an object is created, what type of variable must be created to access it? primitive variable complex variable reference variable matching variable QUESTION 5 What type of classes should not be allowed to be extended? math classes cryptographic classes text manipulation 1/0 classes QUESTION 6 In computing, what does API stand for? Application Programming Interface Arithmetic Precision Intervals Abstract Procedures Interface Algorithmic Programming Interface QUESTION 7 What is difference between a static and instance variable static variables belongs to the class while instance variables belongs to the object static variables belongs to the instance while instance variables belongs to the object static variables take up more memory space than instance variables there is no difference between static and instance variables in a running program QUESTION 8 In addition to being platform independent, what advantage does Java have over older computer languages like FORTRAN and Pascal? Java's math libraries are more accurate Java can create dynamic (run time) data structures Java is faster than these older languages there is no real differences between and among these languages In addition to being platform independent, what advantage does Java have over older computer languages like FORTRAN and Pascal? Java's math libraries are more accurate Java can create dynamic (run time) data structures Java is faster than these older languages there is no real differences between and among these languages QUESTION 9 A variable marked as "private" can be access by: only by methods within the class any method within the class and the project only by methods within the project if declared properly, it can be access anywhere at runtime QUESTION 10 The reserve work this allows indicates that "this is the correct method to call allows the use of the same variable name for parameter and local variables allows for shadowing has no effect of the variables scope In Java, variables are passes as: value reference value and reference depending on variable type it does not matter QUESTION 12 Static methods cannot: refer to non-static member of the class. are more powerful that non-static methods be used in utility classes be used more than once within a class QUESTION 13 What is the difference between an array and an arraylist ArrayList is an object with organic methods ArrayList is dynamic, i.e. it can expand and contract as needed ArrayList is slower than an array all of the above In a Binary Search Algorithm the data must be: only in binary form, i.e."" and "" only in String format ordered (sorted) less than 1 million entries QUESTION 15 Which one of the follow code snippets will compare two Strings? = .equals QUESTION 16 Garbage collection in Java is: must be done explicitly by the programmer automatic more difficult than other languages remove data structure that are no longer referenced In the Unified Modeling Language (UML) the indicates a variable or method is public symbol indicates: indicates a negative value indicates a variable or method is private indicates a variable or method is inactive QUESTION 18 In overloading, two or more methods can have the same name as long as: their return values are different their internal logic is different one method is larger than the other(s) their parameter lists are different QUESTION 19 In order to work effectively with multi-dimensional arrays, you must use: nested loops external loops nondeterministic structures abstract data structures A class is analogous to a[n) house blueprint construction site architect QUESTION 21 The Java key word that causes an object to be created in memory create new construct instantiate QUESTION 22 What method is automatically called when an instance of a class is created? accessor constructor void static Find the output of the following program: public class Tatouestionight public static void main(Stringil args) intl - 13,5,8 intl y - 16, 8, 217 int answer - 0 for (int Outerindex - O Outerindex

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions