Want to create interactive content? It’s easy in Genially!

Get started free

Java NetBeans Programming

Juan Camilo Hernandez Sarmiento

Created on September 22, 2021

introduction to Java NetBeans Programming

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

Java NetBeans Programming

by:juan camilo hernández sarmiento juan david cartellanos porras

to:javier daza piragauta

introduction

01

The following presentation will explore the evolution history of Java, this programming language that was founded in 1991 and is currently very popular among program developers, NetBeans will also be explored, which is a software development environment that this mainly created for java.

index

00

COMMON OPERATORS

introduction

NETBEANS

DOCUMENT

bibliography

BASIC structure

syntax

HISTORY

THANKS

text-based inputs and outputs

EVOLUCIONTIMELINE

constant and variable

Conclusion

COMPILE

Java History

HISTORY

01

In 1991, the "Green Team" led by James Gosling of Sun Microsystems created a programming language for consumer digital devices. The language was called Oak, so why Oak? Because there was an oak tree outside Gosling's office.

java evolution

02

TIMELINE

2017

Version 1.9

2011

Version 1.7

2004

Version 1.5

2000

Version 1.3

1997

Version 1.1

1992

It is renamed green

2014

Version 1.8

2006

Version 1.6

2002

Version 1.4

1998

Version 1.2

1991

Nativity, receives the name of oak

1995

Java appears as a new programming language with cross-platform support

02

TIMELINE

2021

JAVA 16 and 17

2019

JAVA 12 and 13

2020

JAVA 14 and 15

2018

JAVA 10 and 11

version 1.1

1997

incorporates several missing classes such as Readers / Writers, Calendars, and Bundles into the language. But without any doubt its greatest contribution is the inclusion of the JavaBeans standard and the JDBC API for connection to databases.

version 1.2

1998

Another important evolution appears with the arrival of the Collections framework and the Swing API that allows developing more complex window interfaces

version 1.3

2000

Small Advances in APIs

version 1.4

2002

There is an important leap in terms of new APIs. Strong support for XML, Regular Expressions, Cryptography, etc. is incorporated.

JAVA 5

2004

there are two important jumps at the core level of language. On the one hand, the inclusion of Generic types that were lacking in the world of collections. On the other hand, the inclusion of the concept of metadata with the use of annotations

JAVA 6

2006

This version contains very specific advances with the inclusion of an API of compilation "on-the-fly" that will allow to manage web services in a comfortable way.

JAVA 7

2011

Another version whose language level changes are limited. There is an improvement of the virtual machine including new garbage collectors.

JAVA 8

2014

the big leap in terms of language. The door is opened to functional programming with the use of Lambda expressions and Streams

JAVA 9

2017

The modularity introduced in Java 9 is not the only novelty incorporated in this new version. Although it has come to outshine the rest, there is another good collection of improvements that will undoubtedly facilitate programming with one of the most used languages by programmers even after more than 20 years.

JAVA 10

March 2018

Of the novelties, the type inference for local variables is the most prominent in terms of changes in the language with the addition of the new reserved word var

JAVA 11

September 2018

It is the first extended support version published or LTS under the new release cycle that Java adopted in version 9. It adds several important new features in terms of security and removes others that in previous versions were already marked as discouraged.

JAVA 12

March 2019

experimentally incorporates switch expressions and garbage collector improvements for higher performance.

JAVA 13

September 2019

It incorporates some new interesting features that improve an easier reading of the code, among the most outstanding are the text blocks and the improved switch expressions

JAVA 14

March 2020

Among the most outstanding novelties that Java 14 incorporates are the records, the definitive incorporation of the switch expressions or the pattern matching for the instanceof operator.

JAVA 15

September 2020

some are changes that do not have a great impact on the language or the platform as there are more internal changes that reimplement and modernize existing code

JAVA 16

March 2021

the changes in the language are not as noticeable as in previous versions, even so the calendar continues to be maintained and in each version notable incremental improvements are included

September 2021

The Java 17 version succeeds Java 11 as an LTS version, so it is a more important version than the previous non-LTS versions. It incorporates all the enhancements included in all previous non-LTSs plus additional ones from Java 16 released six months earlier.

Java NetBeans

What is it?

03

NetBeans is a very complete and professional development environment. It contains many functionalities, for different types of applications and to make programming, testing and debugging the applications that are developed as easy as possible. It also incorporates its own editor.

basic structure to create a java NetBeans program

structure

At the highest level of the hierarchy is the Project, which groups at least two folders: the source packages and the libraries or libraries.

The source packages or Source packages is where your code files will be stored.

Projects are created in a folder with the name you gave it when creating it in Netbeans. The folder is in Documents and is called NetBeansProjects.

how to compile a code

05

COMPILE

In order for the program to be compiled and linked, we must generate the project. Use the menu command Execute >>> Generate Main Project. In order for the program to be compiled and linked, we must generate the project. Use the menu command Execute >>> Generate Main Project.

document a Java NetBeans program

06

JAVADOC

To generate the java NetBeans documentation it can be done in two ways: 1. From our favorite Editor. 2. From command line Regardless of the option we choose, the “javadoc” tool of our JDK will be used.

In order to generate the documentation of any class or method, HTML tags preceded by the "@" character must be used. The tags must be inside a java comment starting with "/ **" and ending with "* /"

How to perform text-based input and output in Java NetBeans

07

JAVATEXT

Input: when the user interacts with the system Operations: when the system performs calculations and / or persistence operations with other systems (such as databases) Output: When the system displays information to the user.

1) Entry For this, we can make use of the BufferedReader class. 2) Operations For this we use the logical operators. 3) Departure For this we use System.out.println, remember that to concatenate text strings with variables in java, the + operator is used.

The declaration of constants and variables

08

JAVADEC

CONSTANTS IN JAVA Structure of a constant: Its structure is composed of: final [datatype] [constantname]; //Statement final [datatype] [constantname] = 10; // Declaration + initiation

VARIABLES IN JAVA Explicit Statement The standard way to declare a variable is to put its type before the variable name like this: °byte min; °int entero; °char letra; This works for both primitive types and other data types. String cadena;

What are the common Java NetBeans operators and how do they work?

09

JAVAOPE

°Assignment operator. °Arithmetic operators. °Incremental arithmetic operators. °Combined arithmetic operators. °Relationship operators.

09

JAVAOPE

°Logical or Boolean operators. °The conditional operator. °Bit operators. °Chain concatenation operator.

What is the syntax for conditional and repeating structures or loops?

Repetitive control structures are those in which a sentence or group of sentences is repeated a lot. A control structure that allows the reception of a certain series of sentences is called a loop, the latter is divided into three structures to specify repetition.

10

JAVASINT

In Java there are three different types of loops: for, while, and do-while. JUDGMENT FOR It is a loop or repetitive statement that executes the start statement. checks the Boolean expression for term. Syntax: if true, it executes the statement in braces and the iteration statement to recheck the Boolean term expression. if false, it exits the loop.

WHILE JUDGMENT It is a loop or repeating statement with a condition at the beginning. A statement is executed as long as a condition is true. The statement may not be executed even once. Syntax: [initialization;] while (logicalexpression) { sentences; [iteration;] }

10

JAVASINT

DO-WHILE JUDGMENT It is a loop or repeating statement with a condition at the end. A statement is executed as long as a condition is true. In this case, the statement is executed at least once Sintaxis: do { sentencias; [iteracion;]
 } while (expresionLogica);.

CONCLUSION

11

Our conclusion about this activity developed is that we were able to learn something as important as the history of java, how they created this program, the person who made it, when they did it, etc.For us, researching the history of Java was important to later understand the characteristics, uses, conditions, etc., of this program. we conclude that java is a very favorable tool in certain aspects that greatly helps the user who decides to use this program.

bibliography

12

  • https://www.timetoast.com/timelines/linea-de-tiempo-evolucion-de-java
  • https://www.arquitecturajava.com/las-versiones-de-java/
  • https://javadesdecero.es/fundamentos/breve-historia-caracteristicas-y-aplicaciones/
  • https://www.fdi.ucm.es/profesor/luis/fp/devtools/NetBeansUso.html
  • https://sites.google.com/site/portafolionetbeans/que-es-netbeans
  • https://mariocelis.com/java/crear-documentacion/
  • https://platzi.com/tutoriales/1222-java-basico/1977-entrada-operaciones-y-salida-de-datos-en-java/
  • https://blog.pleets.org/article/declaraci%C3%B3n-de-variables-en-java
  • https://www.programarya.com/Cursos/Java/Sistema-de-Tipos/Final-y-Constantes
  • https://www.arkaitzgarro.com/java/capitulo-4.html
  • https://prezi.com/39prvqr5t3me/estructuras-condicionales-y-repetitivas/

¡THANKS!