Information about course

Semester:winter 2013/2014
Lecture:9:00 Tue, S3
Practicals:10:40 Mon, SU2
 10:40 Tue, SU2
 15:40 Tue, SU2
 17:20 Tue, SU2, this practical is in English!!!
 10:40 Wed, SU2
 15:40 Wed, SU2
Hours/week:2/2 ZK/Z
Lecturer:Petr Hnětynka
email: hnetynka _at_


  • Practicals are in the Unix computer lab
  • Sign yourself to a practical using the information system
    • who is not signed to a practical till the end of October will not receive "zápočet"
  • Information for those who repeats the course or does not want to attend the practicals
    • if you repeat the course and you have fulfilled some requirements of the course and you do not want to attend the practicals, then sign yourself to the special "virtual" practical
      • if you repeat the course but you want to attend a "regular" practical, of course you can
    • the requirements you fulfilled previous year can be accepted (but only in the scope of a single study)
      • explicitly write about it to the teacher of the particular practical
      • if you did not write the home project program, the topic is not automatically accepted
        • but it is not necessary to think out a new one; you can propose the original one
    • if you do not repeat the course but do not want to attend practicals, you can also sign yourself to the "virtual" practical
    • for the "virtual"practical, there are the same requirements and deadline as for the "regular" ones (automatically you have program the second home-work)
    • "recipe" for the "virtual" practical
      • sign yourself to the "virtual" practical
      • write an email to the teacher of the "virtual" practical (Petr Hnetynka)
        • if you repeat the course, write about already fulfilled requirements
        • if you do not repeat the course, propose a topic of the home project program
      • in the middle of the semester, program the 1. home-work
      • at the end of the semester, program the 2. home-work (instead of attendance)

Exam and "zápočet"

  • Exam is a written test
  • To obtain "zápočet" it is necessary to create home project program and successfully pass the practical programming test
  • Next, in the middle of the semester there will be a mandatory home-work.
  • Practicals attendance is mandatory! If you miss more than 3 practicals, you have to program additional home-work (at the end of the semester)
  • Topics for the home program project has to be agreed till 20th December 2013
    • the topic is agreed with the teacher of the particular practical you are assigned to.
    • without properly agreed topic you will not obtain "započet"
  • Submitting the home program project
    • till the end of February; the latest deadline is 23th May 2014 12:00 (noon)
    • the project is submitted by email; only if it is necessary the project is shown personally.
    • the project is submitted as a zip archive, which contains:
      • sources,
      • build.xml file for ant (allows compilation, javadoc generation, and execution of the project),
      • user documentation (as a plain-text or html or pdf) so the project can be launched and tested,
        • developer documentation can be javadoc only (all methods commented, commented packages, basic info on the overview page)
      • explicitly specified version of Java, which is necessary for compilation and execution (ideally specified directly in build.xml
  • Dates for exams and practical tests will be posted in SIS
  • Information about exam
    • duration 45 minut
    • written
    • no need to have "započet" in advance
    • no resources allowed (books, notes, slides,...)
      • (only a pen and your head is allowed :-)
    • there will be one exam during summer exam period and maybe one or two exams during the semester
  • Information about practical tests
    • duration 3 hours
    • in the Unix lab
    • you can use any printed resources (books, notes,...)
      • all electronic resources and network communication is forbidden (the exceptions are API documentation (without tutorials) and the course website, i.e. slides and examples)
    • there will be also two tests during the summer exam period
    • there are 5 attempts to pass the test
  • Homeworks will be posted here and announced during the lecture
  • 1. HOMEWORK — extended


Practical 11.10.2013 — 7.10.2013CZEN
Classes, interfaces, arrays, Strings8.10.2013CZEN
Practical 28.10.2013 — 14.10.2013CZEN
Exceptions, Unicode, literals, inner classes15.10.2013CZEN
Practical 315.10.2013 — 21.10.2013CZEN
Assertions, Generics, Enum, VarArgs22.10.2013CZEN
Practical 422.10.2013 — 28.10.2013CZEN
javadoc, annotations, jdb, ant29.10.2013CZEN
Practical 529.10.2013 — 4.11.2013CZEN
Practical 65.11.2013 — 11.11.2013CZEN
jar, threads, java.lang.Object12.11.2013CZEN
Practical 712.11.2013 — 18.11.2013CZEN
System, Runtime, StringBuffer, StringBuilder, Collections19.11.2013CZEN
Practical 819.11.2013 — 25.11.2013CZEN
Serialization, Preferences, Network communications, Date/Time, Localisation26.11.2013CZEN
Practical 926.11.2013 — 2.12.2013CZEN
Swing — introduction, layouts3.12.2013CZEN
Practical 103.12.2013 — 9.12.2013CZEN
Swing (threads, dialogs), Applets, JNLP10.12.2013CZEN
Practical 1110.12.2013 — 16.12.2013CZEN
Swing — own painting17.12.2013CZEN
Practical 1217.12.2013 — 6.1.2014CZEN
Swing, tokenizer, logging7.1.2014CZEN
Practical 137.1.2014 — 10.1.2014CZEN

Examples shown during lecture and practicals

Hello world, operators, owerflows,...1.10.2013 — 7.10.2013
Constructors, finalize, String compatrison,...8.10.2013 — 14.10.2013  NetBeans project
Exceptions, unicode, encoding, main,...15.10.2013 — 21.10.2013  NetBeans project
Assert, JDK 5 additions,...22.10.2013 — 28.10.2013  NetBeans project
Ant29.10.2013 — 4.11.2013
Input/Output5.11.2013 — 11.11.2013  NetBeans project
Treads, clone, equals12.11.2013 — 18.11.2013  NetBeans project
Collections, runtime, properties,...19.11.2013 — 25.11.2013  NetBeans project
Serialization, Preferences, Net, Date/Time, Localization26.11.2013 — 2.12.2013  NetBeans project
Swing3.12.2013 — 9.12.2013  NetBeans project
Swing 210.12.2013 — 16.12.2013  NetBeans project
Swing — own painting17.12.2013 — 6.1.2014  NetBeans project
Swing 3, logging7.11.2014 — 10.1.2014  NetBeans project