Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

(BOOST YOUR GRADES FOR 2024 EXAMS)WGU C482 Software 1: Oracle Certified Associate Java SE 8, Questions and answers. Graded A+

Rating
-
Sold
-
Pages
81
Grade
A+
Uploaded on
31-10-2023
Written in
2023/2024

WGU C482 Software 1: Oracle Certified Associate Java SE 8, Questions and answers. Graded A+ What is an object? - -An object is a runtime instance of a class in memory. What is a class? - -A class is a program code template used to produce objects. Classes are the building blocks of Java. What are the members of the class? - -The members of a class consist of methods and fields. What are methods? - -Methods (also known as functions or procedures in other programming languages) are sets of code that are named. Those named sets of code can be called by invoking the name. Methods operate on the state of the program. What are fields? - -Fields are also known as variables and they are used to hold the state of the program. What is the format for writing a simple Java class? - -public class ClassName {} What does the public keyword mean? - -The public keyword means that the code in question can be used by another class. You can have public classes and public methods. What is a String? - -A String is a value that you can but text into. What is a parameter? - -A parameter is information that needs to be supplied to the calling method. For example: public void setName(String newName) has the parameter newName, setName is the name of the method, and void is the return type because this method doesn't return anything when called. What is a method signature? - -A method signature is the full declaration of a method. For example: public int numberOfVisitors(int month) is a method signature for the method numberOfVisitors. It has a return type of int and it takes one parameter, month. What is a comment? - -A comment is a line of non-executable code that is used to make code easier to read or to provide valuable information to the programmer. How do you write a single line comment? - -// comment here How do you write a multiple line comment? - -/* multiple * line comment here */ How do you write a javadoc comment? - -/** * javadoc multiple line comment * @author Jen and Scott */ What is a javadoc comment used for? - -A Javadoc comment has a specific structure that the Javadoc tool knows how to read. This structure allows the Javadoc tool to read and generate API documentation for the code. What is API? - -API (or application programming interface) is a set of clearly defined methods of communication between software components. Where does a Java program begin execution? - -A Java program begins execution at the main method. What is the main method? - -The main method is a gateway between the startup of a Java process which is managed by the Java Virtual Machine (JVM) and a programmer's code. How do you write a basic main method? - -You write a basic main method by writing the following line of code: public static void main(String[] args){ // main method goes here! } What does the keyword public declare? - -The keyword public is what's called an access modifier. It defines the levels of exposure to potential callers of the method. Naturally public means it can be called anywhere in the program. What does the keyword static mean? - -The keyword static binds a method to its class so it can be called just by the class name. What is a return type? - -A return type tells what a method returns after execution. A return type of int for example would indicate that you should expect an integer to be returned. The return type void indicates that there will be nothing returned by this method. What does String[] args indicate in the main method? - -The String[] args statement is a parameter of the main method. It can be written as String[] args, String args[], and String... args. These are all equivalent statements to Java, and it basically means you can read in an array of arguments of type string. What does the following mean? .ArrayIndexOutOfBoundsException: 1 at Z(Z) - -It means that at line 4 of the Zoo class main argument you have attempted to access an index of an array that doesn't exist. What is Java compiled into? - -Java is compiled into Java bytecode. This allows Java to be platform independent. During the compilation phase Java compiles the .java file into what? - -During compilation the .java file is compiled into a .class file that contains the program converted into Java Bytecode. What are packages? - -Packages are logical groupings of classes

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
October 31, 2023
Number of pages
81
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
PassPoint02 Chamberlain School Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
176
Member since
4 year
Number of followers
105
Documents
4576
Last sold
1 month ago

4.1

39 reviews

5
22
4
6
3
5
2
4
1
2

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions