ByteBrawl - Quiz - Concepts To Know - Java Basics
ByteBrawl
About
Dashboard
Lessons
Builder
Leaderboards
Feedback
Level 1
0
Sign Out
All Lessons
0
Java Basics
Intro To Java
What Is Java
The Big 3
Compilation And Execution
Quiz
Concepts To Know
Comments
Functions
Variables
Types
Arrays
Class
Quiz
Java File
The Simplest Program
The Java Entry Point
Where Can You Put Code
Quiz
Functions
Defining A Function
Calling A Function
Return Types
Quiz
Classes And Objects
Defining A Class
Constructors
Methods
Standard Class
Enum Class
Nested Classes
Quiz
Concepts To Know - Quiz
Why would you use a double over a float?
It doesn't matter.
A double uses less memory and has lower precision while a float has high precision.
Using a float saves memory, but it has lower precision.
Doubles hold 2 numbers while floats hold just 1 decimal.
What is the purpose of arrays?
Storing multiple values of the same type.
Storing a single value of any type.
Storing a list of strings.
Storing other arrays.
Comments should be used to:
Beg that your code runs right.
Make the code run faster.
Store temporary data.
Explain the code.
What is the difference between a function and a method?
Functions and methods are used interchangably and are the same thing.
A function is a standalone block of code, while a method is associated with an object.
A function can return multiple values, while a method can only return one.
Incorrect. Please try again.
Submit
Complete Quiz First
Section