Want to create interactive content? It’s easy in Genially!
Java presentation
Manuel MINUTO
Created on March 20, 2024
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Psychedelic Presentation
View
Chalkboard Presentation
View
Witchcraft Presentation
View
Sketchbook Presentation
View
Genial Storytale Presentation
View
Vaporwave presentation
View
Animated Sketch Presentation
Transcript
Flipped Classroom JAVA Presentation
Group composed of Minuto Manuel, Pessot Daniele and Giulio Coletta. Presentation made by Minuto Manuel
START
Topic
Short look at the questions we will answer in this powerpoint
Why was Java so innovative?
Who created java?
Why does java exist?
In which fields is Java mostly used?
What’s Minecraft about?
Java virtual machine
Continuation of the history of minecraft
How to code in java?
Minecraft history
Basics of programming in java
What is a class and object?
Thanks
PESSOT'S SECTION
Why does java exist?
Java is an object oriented programming language invented by James Gosling, who worked in Sun Microsystems at the time, in 1995. There was a need for a language that could have been executed on every machine, without looking at the hardware specs.
PESSOT'S SECTION
Who created java?
James Gosling is a Canadian computer scientist renowned for being the creator of the Java programming language. Born in 1955, he earned his Ph.D. in computer science from Carnegie Mellon University. Gosling has worked for various technology companies, including Sun Microsystems, where he developed Java in the 1990s. The Java language has had a tremendous impact on computer science, becoming one of the most popular languages worldwide for software, mobile app, and web development. Gosling has received numerous awards and accolades for his contributions to computer science. After Sun Microsystems, he worked for Google and Liquid Robotics. His influence in the computer industry remains significant
Jamse Gosling
Why was Java so innovative?
Java solved this issue since its birth: with its mantra “write once, run anywhere”, it became one of the most used programming languages in the world.
PESSOT'S SECTION
THE JAVA VIRTUAL MACHINE
Indeed, a source code written in Java language could be compiled and executed in every sort of computer, if it had installed the Java virtual machine (JVM). A JVM is a software program that compiles and executes programs without caring about the machine's hardware specs. Moreover, Java offers many other advantages (after the universal use of it): OOP philosophy: an object oriented way of representing algorithms is effective mainly because of code’s reusability; Rich standard libraries: a library is a collection of functions (operations that may be realized on data), and Java by default provides a rich ecosystem of them; Security: Java JVM is capable of “understanding” if a code may be malicious for the machine and it blocks it if that takes place;
Diagram of the java virtual machine
PESSOT'S SECTION
In which fields is Java mostly used?
Java is used in the following fields: Mobile application development: Android Studio, the software used for creating android apps, is widely made of Java language scripts; Enterprise softwares; Scientific tools; Game development;
What’s Minecraft about?
Minecraft is one of the most popular games ever created. It sold over 300 million copies worldwide, more than any other game. The game is a sandbox, meaning the player has complete control on every aspect of the game. It’s up to him to decide whether the game is won after beating the Dragon or after hitting 20.000 in-game days. The world is made of blocks that the player can use to create equipment, tools, potions, machines and even new blocks.
Minecraft history
Java is used for Minecraft because Notch (its creator) started coding it in Java. The project was then kept up by Mojang, which today has been incorporated by Microsoft. Mojang developed its own game engine to make Minecraft work, and it was unique to them (chunk generation and so on). Worlds are generated randomly depending on the seed, usually a very big number used by the engine to determine, and randomize, the shape of the world. The blocks generated for a world are basically infinite, from the pov of the player. The problem is that Java does not support numbers to infinity: to a specific type of data, it assigns a dimension in bits. It is this dimension that determines how many blocks can be generated.
Continuation of the history of minecraft
What happens when reaching that number, then? We could simplify by saying that, In older versions, the generation stopped working as usual, and monstrosities started appearing. I said “in older versions” because today that number of bits we talked about earlier has been drastically increased, giving room to many more million blocks to generate. Plus, the farlands do not generate anymore, as that problem in the generation engine has been fixed. There are not big clusters of whatever, now, but simply blocks that start repeating over and over again, until the world simply stops generating anything but an infinite sea.
How to code in java?
Programming in Java involves writing object-oriented code to define the behavior of program elements. Java libraries are utilized, and code is organized into classes and methods. After writing the source code, it is compiled into bytecode and executed on the Java Virtual Machine (JVM). Java is renowned for its portability and provides a clear language and extensive standard library.
Java code example
WOW!
Run to discover the interesting world of java
What is a class and object?
In Java, a class serves as a blueprint or prototype defining the characteristics and behaviors of an object. It acts as a template for the objects to be created. Classes contain data (variables) and operations (methods) that can be performed on objects of that class. An object, on the other hand, is an instance of a class. It is a concrete representation of that class and possesses both state (attributes) and behavior (methods). Objects are created using the class constructor and can interact with each other through messages. The key features of classes and objects in Java include encapsulation, which allows hiding the internal complexity of a class and providing a clear interface for usage; inheritance, enabling a class to inherit attributes and methods from another class; and polymorphism, allowing objects of different classes to respond to the same message differently, based on their actual type.
WOW!
Thanks!
Tthank you for your attention and we hope you enjoyed the presentation
In summary, in Java, classes serve as blueprints for creating objects, which are instances of those classes. These objects are capable of storing data and performing specific operations. With concepts like encapsulation, inheritance, and polymorphism, Java provides a flexible and powerful environment for software development. Whether it's building desktop, web, or mobile applications, Java remains a top choice for developers worldwide.