OCA Java SE 8 Programmer I Certification Guide
eBook - ePub

OCA Java SE 8 Programmer I Certification Guide

Mala Gupta

Condividi libro
  1. English
  2. ePUB (disponibile sull'app)
  3. Disponibile su iOS e Android
eBook - ePub

OCA Java SE 8 Programmer I Certification Guide

Mala Gupta

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

OCA Java SE 8 Programmer I Certification Guide prepares you for the 1Z0-808 with complete coverage of the exam. You'll explore important Java topics as you systematically learn what's required to successfully pass the test.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
OCA Java SE 8 Programmer I Certification Guide è disponibile online in formato PDF/ePub?
Sì, puoi accedere a OCA Java SE 8 Programmer I Certification Guide di Mala Gupta in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Programación en Java. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Chapter 1. Java basics

Exam objectives covered in this chapter
What you need to know
[1.2] Define the structure of a Java class. Structure of a Java class, with its components: package and import statements, class declarations, comments, variables, and methods. Difference between the components of a Java class and that of a Java source code file.
[1.3] Create executable Java applications with a main method; run a Java program from the command line; including console output. The right method signature for the main method to create an executable Java application. The arguments that are passed to the main method.
[1.4] Import other Java packages to make them accessible in your code. Understand packages and import statements. Get the right syntax and semantics to import classes from packages and interfaces in your own classes.
[6.4] Apply access modifiers. Application of access modifiers (public, protected, default, and private) to a class and its members. Determine the accessibility of code with these modifiers.
[7.5] Use abstract classes and interfaces. The implication of defining classes, interfaces, and methods as abstract entities.
[6.2] Apply the static keyword to methods and fields. The implication of defining fields and methods as static members.
[1.5] Compare and contrast the features and components of Java such as: platform independence, object orientation, encapsulation, etc. The features and components that are relevant or irrelevant to Java.
Imagine you’re setting up a new IT organization that works with multiple developers. To ensure smooth and efficient working, you’ll define a structure for your organization and a set of departments with separate responsibilities. These departments will interact with each other whenever required. Also, depending on confidentiality requirements, your organization’s data will be available to employees on an as-needed basis, or you may assign special privileges to only some employees of the organization. This is an example of how organizations might work with a well-defined structure and a set of rules to deliver the best results.
Similarly, Java has a well-defined structure and hierarchy. The organization’s structure and components can be compared with Java’s class structure and components, and the organization’s departments can be compared with Java packages. Restricting access to some data in the organization can be compared to Java’s access modifiers. An organization’s special privileges can be compared to nonaccess modifiers in Java.
In the OCA Java SE 8 Programmer I exam, you’ll be asked questions on the structure of a Java class, packages, importing classes, and applying access and nonaccess modifiers and features and components of Java. Given that information, this chapter will cover the following:
  • The structure and components of a Java class
  • Understanding executable Java applications
  • Understanding Java packages
  • Importing Java packages into your code
  • Applying access and nonaccess modifiers
  • Features and components of Java

1.1. The structures of a Java class and a source code file

[1.2] Define the structure of a Java class
Note
When you see a certification objective callout such as the preceding one, it means that in this section we’ll cover this objective. The same objective may be covered in more than one section in this chapter or in other chapters.
This section covers the structures and components of both a Java source code file (.java file) and a Java class (defined using the keyword class). It also covers the differences between a Java source code file and a Java class.
First things first. Start your exam preparation with a clear understanding of what’s required from you in the certification exam. For example, try to answer the following query from a certification aspirant: “I come across the term ‘class’ with different meanings: class Person, the Java source code file (Person.java), and Java bytecode stored in Person.class. Which of these structures is on the exam?” To answer this question, take a look at figure 1.1, which includes the class Person, the files Person.java and Person.class, and the relationship bet...

Indice dei contenuti