100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Java 8 Questions for Oracle Certified Associate Java SE 8 Programmer 1 Study Guide Exam And Actual Answers.

Beoordeling
-
Verkocht
-
Pagina's
17
Cijfer
A+
Geüpload op
18-05-2025
Geschreven in
2024/2025

What year was the Java programming created - Answer 1995 What does OCA stand for - Answer Oracle Certified Associate What are the 2 tests for Java developers provided by Oracle - Answer OCA and OCP The full declaration of a method is called the method ____ - Answer signature True or False - can you add a multiline comment within a multiline comment? - Answer false How many public classes can be added to a single file - Answer 1 Write the syntax for the main method. - Answer public static void main(String[] args) When you compile a Java class what file type extension is output? - Answer .class What does a .class file contain - Answer bytecode True or false, what creating a public Java class in a file does the case used in the file name have to match the case used by the Java class name? - Answer true In a method declaration, the public, protected and private declarations are called what? - Answer access modifiers What is the one special package in Java that you don't need to import? - Answer What is the generic term for packages that are defined after the ny package? - Answer child packages When creating an array, which one of these definitions is correct? 1.) String[] args, 2.) String args[], 3.) String... args, 4.) all of the above - Answer 4

Meer zien Lees minder
Instelling
OCP Oracle Certified Professional Java SE 21
Vak
OCP Oracle Certified Professional Java SE 21










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
OCP Oracle Certified Professional Java SE 21
Vak
OCP Oracle Certified Professional Java SE 21

Documentinformatie

Geüpload op
18 mei 2025
Aantal pagina's
17
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

Java 8 Questions for Oracle Certified
Associate Java SE 8 Programmer 1
Study Guide Exam And Actual Answers.
What year was the Java programming created - Answer 1995



What does OCA stand for - Answer Oracle Certified Associate



What are the 2 tests for Java developers provided by Oracle - Answer OCA and OCP



The full declaration of a method is called the method ____ - Answer signature



True or False - can you add a multiline comment within a multiline comment? - Answer false



How many public classes can be added to a single file - Answer 1



Write the syntax for the main method. - Answer public static void main(String[] args)



When you compile a Java class what file type extension is output? - Answer .class



What does a .class file contain - Answer bytecode



True or false, what creating a public Java class in a file does the case used in the file name have
to match the case used by the Java class name? - Answer true



In a method declaration, the public, protected and private declarations are called what? -
Answer access modifiers



What is the one special package in Java that you don't need to import? - Answer java.lang



What is the generic term for packages that are defined after the com.company package? -
Answer child packages

,What package does the Files and Paths object belong to? - Answer java.nio.file



What 2 common packages contain the Date class - Answer java.util.Date and java.sql.Date



If a class wanted to use the java.util.Date class, but the class had imports for java.util.* and
java.sql.* which both contain the Date class how would you fix this? - Answer Add an explicit
import for java.util.Date since explicitly importing a class takes precedence over any wildcard
imports.



What command do you use to compile a Java class? - Answer javac



What package is the ArrayList class in? - Answer java.util.



When defining a constructor for class Junk, what is the proper syntax? - Answer public Junk()
{}



// notice there is NO return value.



What is a code block outside of a method called? - Answer instance initializer



Given the class public class Junk { int eggs=0; public Junk() { eggs=1; } { eggs = 10; } } what is the
value of eggs and why? - Answer Answer: 1



Reason: The value is 1 because the fields and instance initializers are run in the order they are
declared and lastly the constructor is run.



In the following code snippet, will this compile?

public class Junk {

{ eggs = 6; }

int eggs;

}

Why or why not? - Answer Answer: Won't Compile

, What are the two types of data that Java applications contain? - Answer primitive type and
reference types



How many primitive data types does Java have? - Answer Answer: 8



There are 8 primitive data types: boolean, byte, short, int, long, float, double and char.



What are the 8 Java primitive types? - Answer boolean, byte, short, int, long, float, double and
char



How many bits is an int primitive data type - Answer 32 bits



How many bits is a long primitive data type? - Answer 64 bits



Which of these floating point data types is bigger? float or double? - Answer Answer: double



Reason: A double type is larger because it is 64 bits and float is only 32.



How many bits is the char primitive type? - Answer Answer: 16 bits



How many bits is a byte primitive data type - Answer Answer: 8 bits



How many bits is a short data type? - Answer Answer: 16 bits



When setting a float data type, what is the correct syntax? - Answer Answer: float myfloat =
123.456f



Reason: You have to remember to add the trailing "f".



What is the range of data a Java byte can hold - Answer Answer: -128 to 127



How many bits are used with the statement:
€13,75
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
TestSolver9 Webster University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
758
Lid sinds
2 jaar
Aantal volgers
126
Documenten
25136
Laatst verkocht
2 dagen geleden
TESTSOLVER9 STORE

TOPNOTCH IN LEARNING MATERIALS,(EXAMS,STUDYGUIDES NOTES ,REVIEWS,FLASHCARDS ,ALL SOLVED AND PACKAGED.OUR STORE MAKE YOUR EDUCATION JOURNEY EFFICIENT AND EASY.WE ARE HERE FOR YOU FEEL FREE TO REACH US OUT .

3,6

133 beoordelingen

5
60
4
19
3
22
2
9
1
23

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen