OCA Java SE 8 Programmer I Certification Guide
eBook - ePub

OCA Java SE 8 Programmer I Certification Guide

Mala Gupta

Partager le livre
  1. English
  2. ePUB (adapté aux mobiles)
  3. Disponible sur iOS et Android
eBook - ePub

OCA Java SE 8 Programmer I Certification Guide

Mala Gupta

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que OCA Java SE 8 Programmer I Certification Guide est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  OCA Java SE 8 Programmer I Certification Guide par Mala Gupta en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencia de la computaciĂłn et ProgramaciĂłn en Java. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2016
ISBN
9781617293252

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...

Table des matiĂšres