CodeGym
Promotion
CodeGym University
Corso
Corso
Compiti
Sondaggi e quiz
Giochi
Aiuto
Agenda con promemoria
Community
Utenti
Forum
Chat
Articoli
Storie di successi
Attività
Recensioni
Abbonamenti
Tema chiaro

Lezioni

  • Recensioni
  • Informazioni
Inizia
Inizia il corso
Inizia il corso ora
  • Mappa delle missioni
  • Lezioni
Tutte le missioni Sintassi Java Core Java Multithreading Java Collezioni Java JSP e Servlet Module 3. Java Professional Module 4. SQL & Hibernate Module 5. Spring Spring
Tutti i livelli Livello 0 Livello 1 Livello 2 Livello 3 Livello 4 Livello 5 Livello 6 Livello 7 Livello 8 Livello 9 Livello 10 Livello 11 Livello 12 Livello 13 Livello 14 Livello 15 Livello 16 Livello 17 Livello 18 Livello 19 Livello 20 Livello 21 Livello 22 Livello 23 Livello 24 Livello 25 Livello 26 Livello 27 Livello 28
  • You've leveled up!

    Sintassi Java
    Livello 6, Lezione 0
    The programmer's path almost sounds like the "way of the samurai". Another similarity is that once you start down this slippery road, you'll find it difficult to turn around. Actually, that's not difficult: The real problem is that you won't want to turn around. This lesson is about what you have to do to achieve your best life as a programmer.
    Disponibile
  • Object visibility and null references

    Sintassi Java
    Livello 6, Lezione 1
    If an object exists, it means that somebody needs it... In Java, this is how it works after an object is created, it exists (lives) as long as at least one variable is storing its address (there is at least one reference to it). If there are no more references, the object dies. The garbage collector comes for it and... Actually, everything isn't so tragic as it sounds. Quite the contrary.
    Disponibile
  • Garbage collection

    Sintassi Java
    Livello 6, Lezione 2
    If you don't save references to objects, the garbage collector will come for them at night to terminate them. As scary as this may sound, programmers are ready to pray to the Java garbage collector. Especially people who started their programming careers using other languages, such as C++.
    Disponibile
  • Finalizing with finalize

    Sintassi Java
    Livello 6, Lezione 3
    Today our agenda includes a brief introduction to the most independent method: finalize(). It only obeys the Java machine in the sense that only the Java machine can call it. And it does so right before the object is destroyed. In fact, this method is the opposite of a constructor. It can free up the resources used by an object.
    Disponibile
  • Object lifetime

    Sintassi Java
    Livello 6, Lezione 4
    It's time to philosophize about the life and death of objects! Programmers often create dozens and dozens of objects and store them in various lists, but they never clean up these lists. This causes bloating. To avoid this, you have to use objects correctly. You'll get your first introduction in lesson.
    Disponibile
  • Tasks about object lifetime

    Sintassi Java
    Livello 6, Lezione 5
    In previous lessons, we found out that we can't call finalize using "handles". Only the Java virtual machine does this, and it's impossible to predict when it will do so. And what if you try to make it happen? For example, create 50,000 objects (cats and dogs, as usual)? We'd tackle this task and several more.
    Disponibile
  • Static variables and methods

    Sintassi Java
    Livello 6, Lezione 6
    Let's dig into "static". Methods can be static and non-static. Ordinary methods are called on an object and have access to its data. Static methods don't have this access: They simply don't have an object reference. They are able to access a class's static variables and other static methods. The details are in the lesson.
    Disponibile
  • Static classes and methods

    Sintassi Java
    Livello 6, Lezione 7
    Variables, methods, and even classes can be static. You'll learn what this is about and why you need it in higher levels, but for now you can look at the example and ponder what's going on here. We'll use a public static cast as a guinea pig. Sounds intriguing, doesn't it?
    Disponibile
  • Practice with static methods

    Sintassi Java
    Livello 6, Lezione 8
    The topics we're raising here are laying solid groundwork for the future. It may not be entirely clear why everything is arranged this way, but it's already clear enough to practice doing tasks. We'll examine static methods as we create them in tasks. By the way, have you noticed that the main() method is also totally static?
    Disponibile
  • Useful links from the Professor – 6

    Sintassi Java
    Livello 6, Lezione 9
    The body of knowledge is growing, so the professor has to look ever more diligently for the information his students need. You won't get through this level without an extra set of additional reading. Still, the professor does his work well. The important thing is to not forget to take advantage of his research.
    Disponibile
  • The Breakout story

    Sintassi Java
    Livello 6, Lezione 10
    Hey, Level 6 is coming to an end! You've completed some difficult but useful tasks. Before you move on to the Level 7, you should rest a bit. Get inspired to reach new heights by watching how the most famous Silicon Valley duo, Steve Jobs and Steve Wozniak, took their first steps and created a game called Breakout.
    Disponibile
  • Final tasks

    Sintassi Java
    Livello 6, Lezione 11
    There's no such thing as extra tasks in the study of programming! The professor at the secret CodeGym center is 1000% convinced of this. That's why several tasks must be completed at the end of the level. Some of them are more advanced and require student's to be able to google. Or think. Or think and google.
    Disponibile
Imparare
  • Registrazione
  • Corso Java
  • Aiuto nei compiti
  • Prezzi
  • Progetti di giochi
  • Sintassi Java
Community
  • Utenti
  • Articoli
  • Forum
  • Chat
  • Storie di successi
  • Attività
  • Affiliate Program
Società
  • Informazioni
  • Contatti
  • Recensioni
  • Sala stampa
  • CodeGym per EDU
  • Domande frequenti
  • Supporto
CodeGym CodeGym è un corso online per imparare a programmare in Java partendo dalle basi. Contiene più di 1200 compiti con verifica istantanea e una parte teorica essenziale sui fondamenti di Java. Per aiutarti a centrare i tuoi obiettivi di apprendimento, abbiamo arricchito il corso di materiale motivazionale, come quiz, progetti di programmazione e contenuti su come apprendere in modo efficiente e sulla carriera di sviluppatore Java.
Seguici
Lingua dell'interfaccia
Programmatori non si nasce, si diventa © 2023 CodeGym
MastercardVisa
Programmatori non si nasce, si diventa © 2023 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.