The document outlines a Java programming course, including 11 lessons that cover topics like basic Java concepts, applets, data types, arrays, strings, controlling program flow, exceptions, interfaces, and event handling. It also provides an introduction to Java, discussing its history, features, principles, and how to set up the Java Development Kit environment on Windows.
This document provides an introduction to Java and Object-Oriented Programming (OOP) concepts. It defines key OOPs concepts like objects, classes, abstraction, encapsulation, inheritance, and polymorphism. It also discusses the features of Java like being simple, object-oriented, platform independent, secure, robust, portable, and high-performance. The document then provides examples of where Java is used including desktop applications, web applications, enterprise applications, mobile applications, and more.
The document discusses Java programming and its key concepts. It covers Java platforms, features of Java, data types, operators, control structures like if-else statements and loops. It also discusses Java programs, variables, I/O and basic syntax rules. Object-oriented concepts in Java like classes, objects, inheritance and polymorphism are explained. The history and applications of Java are also summarized.
The document discusses Java programming and provides details about:
1. Java is an object-oriented programming language that is platform independent and allows code to run on any system that supports Java.
2. The document covers Java history, features, platforms, data types, variables, operators, control structures and provides examples of Java programs.
3. Key concepts discussed include classes, objects, inheritance, polymorphism, encapsulation and abstraction in Java.
This document provides an overview of Java programming including:
- A brief history of Java originating from Sun Microsystems' Green project in the 1990s.
- An introduction to core Java concepts like the Java Virtual Machine, bytecode, and platforms independence.
- A discussion of object-oriented programming principles like abstraction, encapsulation, and polymorphism and how they are implemented in Java.
- Descriptions of common Java program types like applications and applets and how they are processed by the Java runtime environment.
- An introduction to Unified Modeling Language (UML) diagrams used for software design.
A programming language specifies the words and symbols that we can use to write a program
A programming language employs a set of rules that dictate how the words and symbols can be put together to form valid program statements
The Java programming language was created by Sun Microsystems, Inc.
It was introduced in 1995 and it's popularity has grown quickly since then.
This document provides an introduction to the Java programming language. It describes the course on Java being taught, including location, schedule, and instructor. It then discusses Java's history, features, the Java Virtual Machine (JVM) and its architecture. Finally, it introduces object-oriented programming concepts like objects, classes, and provides a simple example Java program.
This document provides an introduction to Java programming and object-oriented programming concepts. It discusses the basics of OOPs including objects, classes, inheritance, polymorphism, abstraction and encapsulation. It also covers the history and features of Java, the different Java platforms, and provides a simple "Hello World" example as a first Java program.
The history and future of java programming languagePreeti Agarwal
Java was created in 1991 by James Gosling at Sun Microsystems to develop technology for smart appliances. It was designed with principles of being portable, high-performance, robust and secure. After initial work under the name Oak, it was renamed Java and released in 1995 with a web browser called HotJava. Java was well received by developers for its "write once, run anywhere" capabilities allowing software to run on any system. Its strengths include automatic garbage collection, static and verbose code making it easy to read and maintain, and portability across platforms.
Object Oriented Methodology (OOM) is a system development approach encouraging and facilitating re-use of software components. We enforce our concern on components re-usability of existing component using Java Language .
This document provides an introduction to the Java programming language created by Sun Microsystems. It discusses that Java is a platform-independent, object-oriented programming language. It also covers key Java concepts like the Java Virtual Machine, bytecode, packages, classes and objects, inheritance, abstract classes, exceptions, threads, and access modifiers. The document provides examples to illustrate Java features and how to write simple Java programs.
This document provides an overview of the Java programming language and platform. It discusses Java's origins, characteristics, editions, and components like the JDK, JRE, and JVM. Java is introduced as a simple, secure, robust, and platform-independent language well-suited for client-server web applications and small devices. The document outlines Java's history and evolution from 1995 to present. Key aspects of Java like object-orientation, portability, and multi-threading are summarized.
This document provides an overview of variables and their scope in Java. It discusses the three types of variables in Java: local variables, instance variables, and class (static) variables.
Local variables are declared within methods, constructors, or blocks and can only be accessed within their declaration scope. Instance variables are declared within a class but outside of methods and can be accessed using an object reference. Class variables are declared with the static keyword, belong to the class itself rather than any object, and are accessed via the class name. The document provides examples and discusses default variable initialization.
Jawad Shafi is an assistant professor who teaches Java programming. The document outlines the course syllabus, including textbooks, materials, assessment breakdown, topics to be covered in lectures, and notes about Java development. It provides students with information needed to understand course expectations and learn Java.
The document outlines the course details for a Mobile App Development class. It includes:
- The course instructor's contact information.
- Recommended reference books and websites for learning Java.
- The marking criteria for assignments, projects, exams.
- General classroom rules around cell phones, food, and behavior.
- An outline of lecture topics that will cover what Java is, its history and features.
This document provides an overview of object-oriented programming and the Java platform. It discusses the history of computing and the development of object-oriented programming. It then covers key concepts of object-oriented programming like classes, objects, encapsulation, inheritance and polymorphism. The document also provides details about the Java programming language, its benefits like portability and its components like the Java Runtime Environment. It concludes with explaining the phases of creating and executing a Java program from writing code to running the compiled bytecode.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like being platform independent and object-oriented. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like the structure of a simple Java program, naming conventions, and primitive data types.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like data types, variables, and methods. It provides examples of "Hello World" programs.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like data types, variables, and methods.
This document provides an overview of object-oriented programming and the Java platform. It discusses the history of computing and the development of object-oriented programming. It then describes key concepts of object-oriented programming like classes, objects, encapsulation, inheritance and polymorphism. The document also gives an introduction to the Java programming language, its benefits like portability and its components like the Java Runtime Environment. It provides details on compiling and running a simple Java program and the different phases involved.
Java is a programming language that produces software for multiple platforms. This Slide covers Basic and fundamentals of Java, Why Java most used in IT company, What are Job Opertunities for Java, How Java overtage a business Strategies.
Java is an object-oriented programming language that is high-level, robust, secure, portable and multi-threaded. It was developed by James Gosling at Sun Microsystems in the early 1990s. Java code is compiled into bytecode that runs on a Java Virtual Machine (JVM) making Java platform independent. The JVM interprets the bytecode and performs tasks like memory management and security.
Different pricelists for different shops in odoo Point of Sale in Odoo 17Celine George
Price lists are a useful tool for managing the costs of your goods and services. This can assist you in working with other businesses effectively and maximizing your revenues. Additionally, you can provide your customers discounts by using price lists.
Ray Dalio How Countries go Broke the Big CycleDadang Solihin
A complete and practical understanding of the Big Debt Cycle. A much more practical understanding of how supply and demand really work compared to the conventional economic thinking. A complete and practical understanding of the Overall Big Cycle, which is driven by the Big Debt Cycle and the other major cycles, including the big political cycle within countries that changes political orders and the big geopolitical cycle that changes world orders.
More Related Content
Similar to Learning Java 1 - Introduction to Java Basic (20)
This document provides an introduction to the Java programming language. It describes the course on Java being taught, including location, schedule, and instructor. It then discusses Java's history, features, the Java Virtual Machine (JVM) and its architecture. Finally, it introduces object-oriented programming concepts like objects, classes, and provides a simple example Java program.
This document provides an introduction to Java programming and object-oriented programming concepts. It discusses the basics of OOPs including objects, classes, inheritance, polymorphism, abstraction and encapsulation. It also covers the history and features of Java, the different Java platforms, and provides a simple "Hello World" example as a first Java program.
The history and future of java programming languagePreeti Agarwal
Java was created in 1991 by James Gosling at Sun Microsystems to develop technology for smart appliances. It was designed with principles of being portable, high-performance, robust and secure. After initial work under the name Oak, it was renamed Java and released in 1995 with a web browser called HotJava. Java was well received by developers for its "write once, run anywhere" capabilities allowing software to run on any system. Its strengths include automatic garbage collection, static and verbose code making it easy to read and maintain, and portability across platforms.
Object Oriented Methodology (OOM) is a system development approach encouraging and facilitating re-use of software components. We enforce our concern on components re-usability of existing component using Java Language .
This document provides an introduction to the Java programming language created by Sun Microsystems. It discusses that Java is a platform-independent, object-oriented programming language. It also covers key Java concepts like the Java Virtual Machine, bytecode, packages, classes and objects, inheritance, abstract classes, exceptions, threads, and access modifiers. The document provides examples to illustrate Java features and how to write simple Java programs.
This document provides an overview of the Java programming language and platform. It discusses Java's origins, characteristics, editions, and components like the JDK, JRE, and JVM. Java is introduced as a simple, secure, robust, and platform-independent language well-suited for client-server web applications and small devices. The document outlines Java's history and evolution from 1995 to present. Key aspects of Java like object-orientation, portability, and multi-threading are summarized.
This document provides an overview of variables and their scope in Java. It discusses the three types of variables in Java: local variables, instance variables, and class (static) variables.
Local variables are declared within methods, constructors, or blocks and can only be accessed within their declaration scope. Instance variables are declared within a class but outside of methods and can be accessed using an object reference. Class variables are declared with the static keyword, belong to the class itself rather than any object, and are accessed via the class name. The document provides examples and discusses default variable initialization.
Jawad Shafi is an assistant professor who teaches Java programming. The document outlines the course syllabus, including textbooks, materials, assessment breakdown, topics to be covered in lectures, and notes about Java development. It provides students with information needed to understand course expectations and learn Java.
The document outlines the course details for a Mobile App Development class. It includes:
- The course instructor's contact information.
- Recommended reference books and websites for learning Java.
- The marking criteria for assignments, projects, exams.
- General classroom rules around cell phones, food, and behavior.
- An outline of lecture topics that will cover what Java is, its history and features.
This document provides an overview of object-oriented programming and the Java platform. It discusses the history of computing and the development of object-oriented programming. It then covers key concepts of object-oriented programming like classes, objects, encapsulation, inheritance and polymorphism. The document also provides details about the Java programming language, its benefits like portability and its components like the Java Runtime Environment. It concludes with explaining the phases of creating and executing a Java program from writing code to running the compiled bytecode.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like being platform independent and object-oriented. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like the structure of a simple Java program, naming conventions, and primitive data types.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like data types, variables, and methods. It provides examples of "Hello World" programs.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like data types, variables, and methods.
This document provides an overview of object-oriented programming and the Java platform. It discusses the history of computing and the development of object-oriented programming. It then describes key concepts of object-oriented programming like classes, objects, encapsulation, inheritance and polymorphism. The document also gives an introduction to the Java programming language, its benefits like portability and its components like the Java Runtime Environment. It provides details on compiling and running a simple Java program and the different phases involved.
Java is a programming language that produces software for multiple platforms. This Slide covers Basic and fundamentals of Java, Why Java most used in IT company, What are Job Opertunities for Java, How Java overtage a business Strategies.
Java is an object-oriented programming language that is high-level, robust, secure, portable and multi-threaded. It was developed by James Gosling at Sun Microsystems in the early 1990s. Java code is compiled into bytecode that runs on a Java Virtual Machine (JVM) making Java platform independent. The JVM interprets the bytecode and performs tasks like memory management and security.
Different pricelists for different shops in odoo Point of Sale in Odoo 17Celine George
Price lists are a useful tool for managing the costs of your goods and services. This can assist you in working with other businesses effectively and maximizing your revenues. Additionally, you can provide your customers discounts by using price lists.
Ray Dalio How Countries go Broke the Big CycleDadang Solihin
A complete and practical understanding of the Big Debt Cycle. A much more practical understanding of how supply and demand really work compared to the conventional economic thinking. A complete and practical understanding of the Overall Big Cycle, which is driven by the Big Debt Cycle and the other major cycles, including the big political cycle within countries that changes political orders and the big geopolitical cycle that changes world orders.
How to Create an Event in Odoo 18 - Odoo 18 SlidesCeline George
Creating an event in Odoo 18 is a straightforward process that allows you to manage various aspects of your event efficiently.
Odoo 18 Events Module is a powerful tool for organizing and managing events of all sizes, from conferences and workshops to webinars and meetups.
Pests of Rice: Damage, Identification, Life history, and Management.pptxArshad Shaikh
Rice pests can significantly impact crop yield and quality. Major pests include the brown plant hopper (Nilaparvata lugens), which transmits viruses like rice ragged stunt and grassy stunt; the yellow stem borer (Scirpophaga incertulas), whose larvae bore into stems causing deadhearts and whiteheads; and leaf folders (Cnaphalocrocis medinalis), which feed on leaves reducing photosynthetic area. Other pests include rice weevils (Sitophilus oryzae) and gall midges (Orseolia oryzae). Effective management strategies are crucial to minimize losses.
How to Manage Maintenance Request in Odoo 18Celine George
Efficient maintenance management is crucial for keeping equipment and work centers running smoothly in any business. Odoo 18 provides a Maintenance module that helps track, schedule, and manage maintenance requests efficiently.
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxArshad Shaikh
Diptera, commonly known as flies, is a large and diverse order of insects that includes mosquitoes, midges, gnats, and horseflies. Characterized by a single pair of wings (hindwings are modified into balancing organs called halteres), Diptera are found in almost every environment and play important roles in ecosystems as pollinators, decomposers, and food sources. Some species, however, are significant pests and disease vectors, transmitting diseases like malaria, dengue, and Zika virus.
Slides from a Capitol Technology University presentation covering doctoral programs offered by the university. All programs are online, and regionally accredited. The presentation covers degree program details, tuition, financial aid and the application process.
How to Configure Vendor Management in Lunch App of Odoo 18Celine George
The Vendor management in the Lunch app of Odoo 18 is the central hub for managing all aspects of the restaurants or caterers that provide food for your employees.
How to Create a Rainbow Man Effect in Odoo 18Celine George
In Odoo 18, the Rainbow Man animation adds a playful and motivating touch to task completion. This cheerful effect appears after specific user actions, like marking a CRM opportunity as won. It’s designed to enhance user experience by making routine tasks more engaging.
This presentation has been made keeping in mind the students of undergraduate and postgraduate level. To keep the facts in a natural form and to display the material in more detail, the help of various books, websites and online medium has been taken. Whatever medium the material or facts have been taken from, an attempt has been made by the presenter to give their reference at the end.
In the seventh century, the rule of Sindh state was in the hands of Rai dynasty. We know the names of five kings of this dynasty- Rai Divji, Rai Singhras, Rai Sahasi, Rai Sihras II and Rai Sahasi II. During the time of Rai Sihras II, Nimruz of Persia attacked Sindh and killed him. After the return of the Persians, Rai Sahasi II became the king. After killing him, one of his Brahmin ministers named Chach took over the throne. He married the widow of Rai Sahasi and became the ruler of entire Sindh by suppressing the rebellions of the governors.
Rose Cultivation Practices by Kushal Lamichhane.pdfkushallamichhame
This includes the overall cultivation practices of Rose prepared by:
Kushal Lamichhane (AKL)
Instructor
Shree Gandhi Adarsha Secondary School
Kageshowri Manohara-09, Kathmandu, Nepal
Human Anatomy and Physiology II Unit 3 B pharm Sem 2
Respiratory system
Anatomy of respiratory system with special reference to anatomy
of lungs, mechanism of respiration, regulation of respiration
Lung Volumes and capacities transport of respiratory gases,
artificial respiration, and resuscitation methods
Urinary system
Anatomy of urinary tract with special reference to anatomy of
kidney and nephrons, functions of kidney and urinary tract,
physiology of urine formation, micturition reflex and role of
kidneys in acid base balance, role of RAS in kidney and
disorders of kidney
#3: Công dụng nổi bật nhất của máy tính là giải quyết vấn đề một cách nhanh chóng và chính xác.
Giải pháp được áp dụng để giải quyết vấn đề được cung cấp dưới dạng một chuỗi các hướng dẫn hoặc thông số kỹ thuật của hoạt động cho phép người dùng đạt được kết quả mong muốn.
Giải pháp để giải quyết một vấn đề trong lĩnh vực công nghệ thông tin đạt được bằng cách phát triển các ứng dụng phần mềm.
Một ứng dụng phần mềm có thể được định nghĩa là một tập hợp các chương trình được viết bằng ngôn ngữ lập trình cấp cao để giải quyết một vấn đề cụ thể.
#4: Kiến thức về miền:
🞛 Đóng vai trò quan trọng trong khi phát triển các ứng dụng phần mềm
🞛 Có thể được định nghĩa là lĩnh vực kinh doanh hoặc công nghệ mà vấn đề thuộc về
🞛 Hình minh họa sự phát triển của ứng dụng phần mềm như một giải pháp để quản lý các hoạt động khác nhau trong một miền ngân hàng.
#5: Ngôn ngữ lập trình:
🞛 Phát triển ứng dụng phần mềm được thực hiện bằng ngôn ngữ lập trình.
🞛 Ngôn ngữ lập trình được sử dụng như một phương tiện để truyền đạt hướng dẫn đến máy tính.
🞛 Ngôn ngữ lập trình áp dụng một phong cách lập trình cụ thể được gọi là mô hình lập trình.
🞛 Hai loại mô hình lập trình:
#6: Trong mô hình lập trình có cấu trúc, quá trình phát triển ứng dụng được phân chia thành một hệ thống phân cấp các chương trình con.
Các chương trình con được gọi là các thủ tục, hàm hoặc mô-đun trong các ngôn ngữ lập trình có cấu trúc khác nhau.
Mỗi chương trình con được xác định để thực hiện một nhiệm vụ cụ thể.
Một số ngôn ngữ lập trình có cấu trúc là C, Pascal và Cobol.
#7: Nhược điểm chính của ngôn ngữ lập trình có cấu trúc như sau:
🞛 Dữ liệu được chia sẻ toàn cầu giữa các chương trình con.
🞛 Nỗ lực được dành cho việc hoàn thành giải pháp thay vì tập trung vào phạm vi vấn đề.
Điều này thường dẫn đến khủng hoảng phần mềm vì chi phí bảo trì các ứng dụng phức tạp trở nên cao và tính khả dụng của phần mềm đáng tin cậy bị giảm.
#8: Sự phức tạp ngày càng tăng của phần mềm đòi hỏi phải thay đổi phong cách lập trình.
Một số tính năng được nhắm đến là:
🞛 Phát triển phần mềm đáng tin cậy với chi phí thấp hơn.
🞛 Giảm chi phí bảo trì.
🞛 Phát triển các thành phần phần mềm có thể tái sử dụng.
🞛 Hoàn thành phát triển phần mềm trong khoảng thời gian đã chỉ định.
Những tính năng này dẫn đến sự phát triển của mô hình lập trình hướng đối tượng.
Các ứng dụng phần mềm được phát triển bằng mô hình lập trình hướng đối tượng là:
🞛 Được thiết kế xung quanh dữ liệu, thay vì chỉ tập trung vào chức năng.
Hình minh họa các hoạt động khác nhau liên quan đến phát triển phần mềm hướng đối tượng:
#9: Giai đoạn Phân tích hướng đối tượng (OOA) xác định chức năng của hệ thống.
Giai đoạn Thiết kế hướng đối tượng (OOD) xác định quy trình lập kế hoạch cho một hệ thống trong đó các đối tượng tương tác với nhau để giải quyết vấn đề phần mềm.
Lập trình hướng đối tượng (OOP) xử lý việc triển khai thực tế của ứng dụng.
Ngôn ngữ mô hình hóa thống nhất (UML) giúp tạo ra các mô hình trực quan trong hệ thống.
Việc triển khai thực tế các mô hình trực quan này được thực hiện bằng ngôn ngữ OOP.
#10: - Biểu diễn một thực thể sở hữu một số tính năng và hành vi nhất định.
- Là một mẫu được sử dụng để tạo các đối tượng của lớp đó.
- Là một kỹ thuật thiết kế chỉ tập trung vào các tính năng thiết yếu của một thực thể cho một miền vấn đề cụ thể.
- Là một cơ chế kết hợp dữ liệu và chi tiết triển khai thành một đơn vị duy nhất được gọi là lớp.
- Cho phép nhà phát triển mở rộng và tái sử dụng các tính năng của các lớp hiện có và tạo các lớp mới. Các lớp mới được gọi là lớp dẫn xuất.
- Là khả năng của một đối tượng để phản hồi cùng một thông báo theo những cách khác nhau.
#11: Một đối tượng đại diện cho một thực thể trong thế giới thực.
Bất kỳ thực thể hữu hình hoặc có thể chạm vào nào trong thế giới thực đều có thể được mô tả là một đối tượng.
Hình minh họa một số thực thể trong thế giới thực:
Mỗi đối tượng có:
🞛 Đặc điểm – Được định nghĩa là các thuộc tính, tính chất hoặc đặc điểm mô tả đối tượng.
🞛 Hành động – Được định nghĩa là các hoạt động hoặc thao tác do đối tượng thực hiện.
Ví dụ về một đối tượng, Chó.
🞛 Thuộc tính – Giống, Màu sắc và Độ tuổi
🞛 Hành động – Sủa, Ăn và Chạy
Khái niệm về các đối tượng trong thế giới thực có thể được mở rộng sang thế giới lập trình, nơi có thể định nghĩa 'đối tượng' phần mềm.
#12: Một đối tượng phần mềm có trạng thái và hành vi.
‘Trạng thái’ đề cập đến các đặc điểm hoặc thuộc tính của đối tượng.
‘Hành vi’ của đối tượng phần mềm bao gồm các hành động của nó.
Hình sau đây cho thấy một đối tượng phần mềm, một chiếc xe với trạng thái và hành vi của nó:
#13: Trong thế giới thực, một số đối tượng:
🞛 Có trạng thái và hành vi chung.
🞛 Có thể được nhóm lại thành một lớp duy nhất.
🞛 Ví dụ: Tất cả các đối tượng ô tô đều có các thuộc tính, chẳng hạn như màu sắc, nhãn hiệu hoặc kiểu máy.
Lớp:
🞛 Có thể định nghĩa rằng một lớp là một mẫu hoặc bản thiết kế xác định trạng thái và hành vi cho tất cả các đối tượng thuộc về lớp đó.
🞛 Hình sau đây cho thấy một chiếc ô tô là một mẫu và một chiếc ô tô Toyota là một đối tượng hoặc thể hiện của lớp:
#14: Lớp bao gồm các trường và phương thức, được gọi chung là thành viên.
🞛 Trường – Là các biến mô tả trạng thái của các đối tượng.
🞛 Phương thức – Là các hàm mô tả hành vi của các đối tượng.
#15: Đây là một trong những ngôn ngữ OOP phổ biến nhất.
Nó giúp các lập trình viên phát triển nhiều loại ứng dụng có thể chạy trên nhiều phần cứng và Hệ điều hành (OS) khác nhau.
Đây cũng là một nền tảng tạo ra môi trường để thực thi ứng dụng Java.
Nó đáp ứng các vấn đề từ quy mô nhỏ đến quy mô lớn trên Internet.
Các ứng dụng Java được xây dựng trên nhiều nền tảng khác nhau, từ:
🞛 Thiết bị nhúng đến ứng dụng máy tính để bàn
🞛 Ứng dụng web đến điện thoại di động
🞛 Ứng dụng doanh nghiệp lớn đến siêu máy tính
#20: Tính năng Chia sẻ dữ liệu lớp (CDS) giúp giảm thời gian khởi động và dung lượng bộ nhớ giữa nhiều JVM.
Khi bạn sử dụng trình cài đặt để cài đặt Oracle JRE, trình cài đặt sẽ tải một tập hợp các lớp mặc định từ tệp Lưu trữ Java (JAR) của hệ thống vào một biểu diễn nội bộ riêng tư.
Bộ nhớ cho các ứng dụng bao gồm hai thành phần, cụ thể là ngăn xếp và đống. Ngăn xếp là một vùng trong bộ nhớ lưu trữ các tham chiếu đối tượng và thông tin phương thức. Vùng đống của bộ nhớ xử lý các phân bổ bộ nhớ động.
Một phần của kho lưu trữ được chia sẻ trên cùng một máy chủ được ánh xạ thành chỉ đọc và được chia sẻ giữa nhiều quy trình JVM.
Chia sẻ dữ liệu lớp ứng dụng
🞛 Cho phép các lớp ứng dụng được đặt trong một ổ đĩa được chia sẻ.
🞛 Siêu dữ liệu lớp chung được chia sẻ trên các quy trình Java khác nhau.
🞛 AppCDS cho phép trình tải lớp hệ thống tích hợp, trình tải lớp nền tảng tích hợp và trình tải lớp tùy chỉnh tải các lớp đã lưu trữ.