In recent decades, society has undergone rapid development driven by technological advancements and digitalization. This has impacted how people communicate, work, and live their daily lives. The most prominent aspect of this technological revolution is the development of artificial intelligence (AI). Digitalization has affected all people in different ways, with significant differences in how various demographic groups have responded, both in terms of knowledge and attitudes. This study aims to explore the differences in knowledge and attitudes towards AI between two distinct groups: young adults and older adults. It also examines whether attitudes differ between different types of AI technologies. The study employs a mixed-methods approach, including both AIAS-4 surveys and semi-structured interviews. The collected data were transcribed and analyzed both comparatively and thematically. The study's results show that younger participants have a higher level of knowledge about AI, primarily due to their greater use of digital media and their upbringing in a digitalized environment. General attitudes towards the use of AI technologies differ between the two age groups, with younger participants being more positive and viewing AI as an integrated part of everyday life. Older participants are more positive towards AI in healthcare and accessibility but are more skeptical about autonomous vehicles and express concerns about potential misuse of the technology.