Programming in Java
Code | Completion | Credits | Range | Language |
---|---|---|---|---|
BIE-PJV | Z,ZK | 4 | 2P+2C | English |
- Garant předmětu:
- Jan Blizničenko
- Lecturer:
- Jan Blizničenko
- Tutor:
- Jan Blizničenko
- Supervisor:
- Department of Software Engineering
- Synopsis:
-
The course Programming in Java will introduce students to the object oriented programming in Java programming language. Beside of basics of Java language the fundamental APIs will also be presented, especially data structures, files, GUI, networking, databases and concurrent APIs.
- Requirements:
-
Basic programming skills in any imperative programming language (e.g. completed PA1 course). It is recommended to have finished or simultaneously attend PA2 course.
- Syllabus of lectures:
-
1. Introduction, history of Java language, editions and versions, operators and their precedence, first executable code.
2. Keywords, the first program, its execution, concepts of class, attributes, methods, inheritance and encapsulation.
3. Inheritance between classes, abstract classes and interfaces, attribute inheritance, shadowing, overriding, constructors.
4. Polymorphism, exceptions, their categories, creation, propagation in and handling.
5. Arrays, parameterized classes (genericity), collections, sorting, comparison, hashing.
6. Input and output: Finding information about the OS, about the file system, working with files, text and binary streams, serialization.
7. StreamAPI, lambda expressions, functional interfaces.
8. Threads: Multi-threaded applications, thread synchronization, their life cycle, priorities, interrupts, common problems.
9. Networking in Java: Basic concepts, differences between TCP and UDP, classes for network communication, client-server architecture.
10. GUI creation and JavaFX library: its basic parts and classes, working with FXML, responsive design, layout of elements, controls.
11. JavaFX events, animations, transitions and transformations.
12. Database: Relational DB basics, connecting to a DB using Java, classes for executing commands, processing data retrieved from queries, SQL data types vs. Java data types.
13. (if the semester has 13 weeks) News in Java 9 and later.
- Syllabus of tutorials:
-
1. Introduction to the subject, comparison of Java vs C/C++, first executable code.
2. Key concepts, the first program, its execution, concepts of class, attribute, method, inheritance and encapsulation, immutability.
3. Inheritance between classes, abstract classes and interfaces, attribute inheritance, shading, overlays, constructors, arrays.
4. Basics of collections, an overview of their types, implementations and practical use, parameterized classes (genericity).
5. Advanced collections, map and its implementation, hashing.
6. Input and output: Working with files, text and binary streams, serialization.
7. StreamAPI, lambda expressions, functional interfaces.
8. Threads: Multi-threaded applications, thread synchronization, producer-consumer problem.
9. Networking in Java: Basic concepts, classes for network communication, practical use of TCP with client-server architecture.
10. GUI creation and JavaFX library: Working with FXML, layouting, controls, tools for working with JavaFX.
11. Working with JavaFX by programming.
12. Database: Basics of relational DB, connecting to DB using Java, classes for executing commands, processing data obtained by queries.
13. (if the semester has 13 weeks) Consultations
- Study Objective:
-
The goal is to teach students the Java programming language and the active ability to use basic Java libraries.
- Study materials:
-
Schildt Herbert: Java: A Beginner's Guide
The Java Tutorials: https://docs.oracle.com/javase/tutorial/
Java Tutorial: https://www.tutorialspoint.com/java/
- Note:
- Further information:
- https://moodle-vyuka.cvut.cz/link/course.php?cx=BIE-PJV&lang=en
- Time-table for winter semester 2024/2025:
-
06:00–08:0008:00–10:0010:00–12:0012:00–14:0014:00–16:0016:00–18:0018:00–20:0020:00–22:0022:00–24:00
Mon Tue Wed Thu Fri - Time-table for summer semester 2024/2025:
- Time-table is not available yet
- The course is a part of the following study plans:
-
- Bachelor branch Security and Information Technology, in English, 2015-2020 (elective course)
- Bachelor branch Web and Software Engineering, spec. Software Engineering, in English, 2015-2020 (elective course)
- Bachelor branch Computer Science, in English, 2015-2020 (elective course)
- Bachelor Specialization Computer Engineering, 2021 (elective course)
- Bachelor Specialization, Information Security, 2021 (elective course)
- Bachelor Specialization, Software Engineering, 2021 (elective course)
- Bachelor Specialization, Computer Science, 2021 (elective course)
- Bachelor Specialization, Computer Networks and Internet, 2021 (elective course)
- Bachelor Specialization Computer Systems and Virtualization, 2021 (elective course)
- Study plan for Ukrainian refugees (elective course)
- Bachelor branch Computer Science, in English, 2015-2020 original version (elective course)
- Bachelor Specialization, Computer Engineering, Version 2024 (elective course)