384 Matching Annotations
  1. Oct 2023
  2. Aug 2023
    1. Most of the time, people are not aware that there isn't only one, but four, garbage collectors. The four garbage collectors are—Serial, Parallel, Concurrent, and Garbage First (G1). We will see them in the following section. There are some third-party garbage collectors, such as Shenandoah. JVM HotSpot's default garbage collector is Parallel up to Java 8, while from Java 9, the default collector is Garbage First Garbage Collector (G1 GC). A Parallel garbage collector isn't best most of the time; however, it depends on our application requirements. For example, the Concurrent Mark Sweep (CMS) and G1 collectors cause less frequent GC pauses. But when they do cause a pause, the pause duration will most likely be longer than a pause caused by the Parallel collector. On the other hand, the Parallel collector usually achieves higher throughput for the same heap size.

      garbage collection

  3. Jun 2023
  4. May 2023
  5. Apr 2023
    1. 12

      O código define três classes: CAx, CBy e Main. A classe CAx tem dois atributos int protegidos a e b, um construtor sem argumentos que inicializa esses atributos com valores padrão, e dois métodos int op1(int x) e int op2(int x) que retornam o valor de x adicionado aos atributos a e b, respectivamente. Além disso, CAx tem um método estático int op3(int x) que retorna o dobro do valor de x. A classe CBy herda CAx e redefine os atributos a e b no construtor, e redefine o método op2(int x). Finalmente, a classe Main cria um objeto CBy e chama o método op1(2) desse objeto, que retorna 14

    2. resultado.setText("Sucesso!");

      O método setText é utilizado para alterar o texto de um objeto TextView. Isso irá atualizar o texto do widget TextView chamado resultado para "Sucesso!".

    3. class MemoriaCalculoVenda implements MemoriaCalculo

      Esse código define uma classe chamada MemoriaCalculoVenda que implementa a interface MemoriaCalculo. A palavra-chave implements é usada para indicar que a classe está implementando uma interface, o que significa que ela deve definir todos os métodos abstratos (sem implementação) declarados na interface.

  6. Mar 2023
  7. Dec 2022
    1. The leading web, mobile, and desktop application solutions are provided by 10decoders, a reputable Java development company. We develop dynamic Java applications for both client-side and web-based needs. We have received praise for our dependable and scalable backend solutions for businesses all over the world.

    2. As a company that creates Java applications, 10decoders collaborates with you to create a complete enterprise software suite that includes mobile and web applications. 10decoders Java development services range from simple MVPs for startups to sophisticated business solutions.