HemSök efter kurserJavaprogrammering - Grundkurs

Javaprogrammering – Grundkurs


This course is for those who want to learn object-oriented programming with Java from scratch.

The course covers both basic syntax and knowledge from Java's most important libraries including the Collections Framework, communication with databases and creation of professional GUIs. You will also learn how to write and run unit tests with the JUnit framework. 


  • Use of functionality taken from Java's standard class library
  • Implement object-oriented models in program code
  • Write program code for handling various exceptional situations
  • Write and run tests with JUnit
  • Write console and file system power management software
  • Connect a Java application to a database
  • Build graphical user interfaces with the AWT and Swing class libraries

Packaging of application for driving on any platform 


4 dagar

36450 kr

Target group

Programmers, system architects, testers and project managers


  • Introduction to Java-based technology areas
  • Use Java as the programming language
  • Basic object-oriented modeling in UML
  • Implement object-oriented models in Java
  • Utilize data structures in the Collections Framework
  • Prevent software errors with exception handling
  • Manage different types of streams in Java
  • Using Java database support
  • Create graphical user interfaces
  • Writing and running JUnit tests

Previous knowledge

Basic programming skills in any programming language such as C, C ++, C #.

Course content: Java programming - Basic

1. Java as a programming language

  • Basic program structure 
  • Garbage collection
  • Core class library packages: java.lang, java.util
  • Data types: primitive and classes 
  • Type safe constants: enum
  • Simple variables, arrays, objects 
  • Initialization: variables, arrays, objects 
  • Operators: arithmetic, comparison, logical
  • lambda expressions
  • Selection: if, switch,? /: 
  • Iteration: while, do / while, for 
  • Assignments 
  • Access modifiers: public, private, (package), protected
  • Type modifier: static, final 
  • Typecasting: generalizing, specializing 
  • Annotations
  • Boxing and unboxing
  • Exception handling: use, throw / catch exception objects 
  • Recommendations for good coding technology 
  • Naming conventions: packages, classes, interfaces, methods, variables, const 
  • Support for documentation with JavaDoc
  1. Object Orientation with Java
  • Introduction to object orientation
  • Encapsulation: object, classes, methods, attributes 
  • UML class diagrams
  • Relationships: Units, Association, Uses
  • Inheritance, class hierarchies, polymorphism, metadata 
  • Constructors, abstract methods, abstract classes
  • Interface definition and implementation

3. Testing Java programs

  • Unit testing background, philosophy 
  • JUnit4 a framework for testing Java applications
  • Test classes
  • Test suites

4. Collections Framework

  • Typical collection classes for arbitrary object types
  • Collection, List, Set and Map interfaces
  • Interface for traversing Iterator and ListIterator
  • For/each loop for easy traversing of collection classes
  • Interfaces for sorting Comparable, Comparator, SortedSet and SortedMap
  • Implementation classes for List: ArrayList and LinkedList
  • Implementation classes for Set: HashSet and TreeSet
  • Implementation classes for Map: HashMap and TreeMap
  • Resource classes Arrays and Collections

5. Streams in Java

  • Streams as a concept: data flow between source and destination
  • Default startup streams: System.in, System.out, System.err
  • File management: FileInputStream, FileOutputStream
  • Reading and Writing streams as text
  • Store / read data types: DataInputStream, DataOutputStream 
  • Serialization: ObjectOutputStream, ObjectInputStream

6. Database management with Java

  • JDBC architecture 
  • Addressing of database 
  • Connect to database 
  • Send SQL statements 
  • Receiving the data: ResultSet
  • DataSource for general database management
  • Three-tier architecture for database applications

7. User interface with Java

  • Graphical user interfaces for applications
    - Swing
    - JavaFX
    - JSF
  • MVC - Model View Controller
  • Overview of the component architecture 
  • Using components 
  • Use layout managers 
  • Event management   

8. Distribution of Java applications

  • JRE - Java Runtime Environment
  • Archive types
    - JAR - Java ARchive
    - WAR - Web ARchive
    - EAR - Enterprise ARchive
  • Ant / Maven for building Java applications