162k views
1 vote
Which of the following is an example of an object-oriented programming language?

A. Fortran
B. Java
C. HTML
D. DevOps

User ManuQiao
by
8.1k points

1 Answer

5 votes

Final answer:

option b,Java is an example of an object-oriented programming language that follows the OOP paradigm. It enables developers to create reusable code components called classes, promoting code reusability, modularity, and maintainability.

Step-by-step explanation:

An example of an object-oriented programming language is Java. Java is a widely used programming language that follows the object-oriented programming (OOP) paradigm. It is known for its simplicity, portability, and scalability, making it suitable for developing applications for various platforms.

Java enables developers to create reusable code components called classes, which can inherit attributes and behavior from other classes. This promotes code reusability, modularity, and maintainability. With Java, developers can leverage object-oriented principles such as encapsulation, inheritance, and polymorphism to build robust and efficient software.

The example of an object-oriented programming language from the options provided is B. Java. Java is renowned for its ability to encapsulate data, support inheritance, and offer polymorphism, which are the hallmarks of object-oriented programming (OOP). Neither Fortran nor HTML are object-oriented; Fortran is primarily a procedural programming language, and HTML is a markup language used for creating web pages. DevOps, on the other hand, is not a programming language but rather a set of practices that combines software development (Dev) and IT operations (Ops).

User Leetbacoon
by
7.0k points