Java kompakt: Eine Einfuhrung in die Software-Entwicklung by Matthias Hölzl, Allaithy Raed, Martin Wirsing

By Matthias Hölzl, Allaithy Raed, Martin Wirsing

Das Buch bietet eine knappe, praxisorientierte Einführung in die Programmierung mit Java. Basierend auf Vorlesungen, Kursen und Praktika für die ersten beiden Semester an der Ludwig-Maximilians-Universität München, sollen Leser möglichst schnell in die Lage versetzt werden, Java Programme zu verstehen und selbständig zu schreiben. Das Buch umfasst den Stoff einer Erstsemester-Vorlesung oder eine Java-Umschulung und vermittelt damit die Grundlagen für eine akademische Ausbildung oder für einen beruflichen Einstieg als Java-Programmierer.

Show description

Read Online or Download Java kompakt: Eine Einfuhrung in die Software-Entwicklung mit Java PDF

Best java books

Java 7 Concurrency Cookbook

Over 60 basic yet tremendously potent recipes for studying multithreaded software improvement with Java 7
* grasp all that Java 7 has to provide for concurrent programming
* familiarize yourself with thread administration, the Fork/Join framework, concurrency sessions and lots more and plenty extra during this ebook and publication
* a pragmatic Cookbook choked with recipes for reaching crucial Java Concurrency initiatives

In element

Java continues to be the worldwide typical for constructing a variety of purposes and company software program, and the release of Java 7 brings with it interesting new functions for concurrent programming in terms of the concurrency utilities enhancement. this enables builders to utilize their purposes with parallel activity functionality. "Java 7 Concurrency Cookbook" covers all components of the Java concurrency API, supplying crucial recipes for benefiting from the intriguing new capabilities.

On your laptop, you could take heed to track whenever you edit a be aware rfile and browse your emails, without warning! it's because your working procedure permits the concurrency of projects, very similar to the Java platform which deals quite a few sessions to execute concurrent projects inside of a Java software. "Java 7 Concurrency Cookbook" covers an important positive factors of the Java concurrency API, with distinctive emphasis at the new services of model 7.

With every one model, Java raises the on hand performance to facilitate improvement of concurrent courses. This publication covers an important and important mechanisms integrated in model 7 of the Java concurrency API, so that you can be in a position to use them at once on your applications.

"Java 7 Concurrency Cookbook" comprises recipes to help you in attaining every thing from the elemental administration of threads and projects, to the recent Fork /Join framework, via synchronization mechanisms among projects, forms of concurrent initiatives that Java can execute, information constructions that has to be utilized in concurrent purposes and the sessions of the library that may be customized.

With the step by step examples during this e-book you’ll have the ability to follow an important and worthy beneficial properties of the Java 7 concurrency API.

What will you study from this ebook
* grasp the fundamentals of thread administration and synchronization earlier than diving into greater point concurrency initiatives
* become familiar with intriguing new concurrency gains of Java 7, together with the Phaser category and the Fork/Join Framework
* effectively delegate thread administration to executors
* customise essentially the most priceless sessions of the Java concurrency API with real-world examples
* discover ways to use high-level Java utilities to control synchronization among threads
* Get a sneak peek at utilizing Eclipse and NetBeans for debugging concurrency code
* stay away from issues of info inconsistency by means of studying the information buildings you should use in concurrent functions
* make the most of an advantage appendix full of counsel that each programmer may still contemplate whilst constructing a concurrent software

Approach

"Java 7 Concurrency Cookbook" is a realistic Cookbook filled with real-world strategies. Intermediate–advanced point Java builders will examine from task-based recipes to take advantage of Java’s concurrent API to software thread secure solutions.

Making Java Groovy

Summary

Making Java Groovy is a pragmatic guide for builders who are looking to combination Groovy into their day by day paintings with Java. It starts off through introducing the main variations among Java and Groovy—and how one can use them in your virtue. Then, it publications you step by step via reasonable improvement demanding situations, from net functions to internet companies to machine purposes, and exhibits how Groovy makes them more uncomplicated to place into production.

About this Book

You don't want the complete strength of Java while you're writing a construct script, an easy procedure application, or a light-weight internet app—but that's the place Groovy shines brightest. This based JVM-based dynamic language extends and simplifies Java so that you can pay attention to the duty handy rather than dealing with minute info and pointless complexity.

Making Java Groov is a pragmatic advisor for builders who are looking to take advantage of Groovy of their paintings with Java. It begins by way of introducing the main alterations among Java and Groovy and the way to exploit them on your virtue. Then, you'll concentrate on the occasions you face each day, like eating and developing RESTful internet providers, operating with databases, and utilizing the Spring framework. You'll additionally discover the good Groovy instruments for construct strategies, checking out, and deployment and the right way to write Groovy-based domain-specific languages that simplify Java development.

Written for builders conversant in Java. No Groovy event required.

Purchase of the print e-book encompasses a unfastened e-book in PDF, Kindle, and ePub codecs from Manning Publications.

What's Inside
• more straightforward Java
• Closures, developers, and metaprogramming
• Gradle for builds, Spock for checking out
• Groovy frameworks like Grails and Griffon

About the Author

Ken Kousen is an self sustaining advisor and coach focusing on Spring, Hibernate, Groovy, and Grails.

Table of Contents
<ol><h5>PART 1: up to the mark WITH GROOVY</h5> • Why upload Groovy to Java?
• Groovy by way of instance
• Code-level integration
• utilizing Groovy positive aspects in Java
<h5>PART 2: GROOVY TOOLS</h5> • construct methods
• trying out Groovy and Java initiatives
<h5>PART three: GROOVY within the genuine WORLD</h5> • The Spring framework
• Database entry
• RESTful internet companies
• development and trying out internet applications
</ol>

Beginning Java Programming: The Object-Oriented Approach

A accomplished Java advisor, with samples, workouts, case reports, and step by step instructionBeginning Java Programming: the thing orientated procedure is a simple source for buying began with one of many world's so much enduringly well known programming languages. in response to periods taught via the authors, the e-book starts off with the fundamentals and steadily builds into extra complex innovations.

Cocoon 2 Programming: Web Publishing with XML and Java

Because of the tireless efforts of open-source builders, Cocoon has speedy won visibility because the preeminent XML-based net publishing framework. regrettably, its documentation continues to be an important shortcoming. if you are new to Cocoon, gaining a feeling of precisely what you are able to do with it may be tough, and really getting began may be even tougher.

Extra resources for Java kompakt: Eine Einfuhrung in die Software-Entwicklung mit Java

Example text

Ein Konstruktor kann, genau wie eine Methode, Parameter besitzen; wie in einer normalen Methode k¨onnen Sie im Rumpf des Konstruktors durch die Parameternamen auf die Werte der u¨ bergebenen Argumente zugreifen. Die Namen von Instanzvariablen beziehen sich in einem Konstruktor immer auf das gerade erzeugte Objekt. kaffeehaus; 2 3 4 5 public class Speise { private String name; private double preis; 6 7 8 9 10 public Speise(String neuerName, double neuerPreis) { name = neuerName; preis = neuerPreis; } 11 12 13 14 15 16 17 public String getName() { return name; } public void setName(String neuerName) { name = neuerName; } 32 public double getPreis() { return preis; } public void setPreis(double neuerPreis) { preis = neuerPreis; } 18 19 20 21 22 23 24 2 Ein Schnelleinstieg in Java } Der Konstruktor in Zeilen 7–10 arbeitet a¨ hnlich wie die Setter setName und setPreis und weist den beiden Instanzvariablen name und preis die als Argumente u¨ bergebenen Werte zu.

In diesem Kapitel haben wir bei allen Programmbeispielen das Paket und die Import-Anweisungen angegeben. Aus Platzgr¨unden werden wir in den kommenden Kapiteln darauf verzichten. Wenn Sie die Programme ausprobieren wollen – was wir Ihnen dringend empfehlen –, m¨ussen Sie den abgedruckten Code um packageund import-Anweisungen erg¨anzen. 14 Was haben wir gelernt? nextDouble(); Klasse A erbt von Klasse B A verfügt über alle Variablen und Methoden von B Abb. 8 Was haben wir gelernt? Mindmap zu Kapitel 2 – Ein Schnelleinstieg in Java Kapitel 3 Klassen und Objekte Viele Substantive in nat¨urlichen Sprachen bezeichnen Kategorien von Objekten, die a¨ hnliche Attribute und ein a¨ hnliches Verhalten haben.

H¨aufig wird vor einer Klassendeklaration die Sichtbarkeit public angegeben. Um die oben beschriebenen Aufgaben wahrnehmen zu k¨onnen, ben¨otigt eine Klasse drei Arten von Elementen: • Instanzvariablen beschreiben die Struktur von Instanzen der Klasse. • Methoden legen das Verhalten der Instanzen fest. • Konstruktoren dienen zur Initialisierung von Instanzen. Außerdem k¨onnen Klassen noch Konstanten, Klassenvariablen (auch statische Variablen genannt), Klassenmethoden (auch statische Methoden genannt), sowie Klas¨ sen und Interfaces als Elemente enthalten.

Download PDF sample

Rated 4.64 of 5 – based on 49 votes