coderz.py

Keep Coding Keep Cheering!

Hello World program

Program code: Output: #include<iostream>: A number sign (#) at the start of a line instructs the compiler’s pre-processor. The <iostream> header defines the libraries required to accept and output data.  using namespace std: This instructs the compiler to use the standard (std) namespace, which includes C++ Standard Library features. int main(): C++, like any other […]

November 5, 2022 | C++ | No comments

Association, Composition & Aggregation in Java

Association: Association is a relation between two separate classes which establishes through their Objects. One-to-one, one-to-many, many-to-one, and many-to-many associations are all possible. An Object communicates with another object to use its functionality and services in Object-Oriented programming. Composition and Aggregation are the two forms of association. Composition: The strongest type of association is composition. It represents part-of relationship. If […]

May 21, 2022 | Java | No comments

Simple Hello World Program

Requirement for Java Hello World Program: Install the JDK if you don’t have installed it, download the JDK and install it. Set path of the jdk/bin directory.Setting CLASSPATH in Java Create the Java program Compile and run the Java program Hello World Example: Save the above file as Hello.java. In the terminal: To compile: javac Hello.java To […]

April 19, 2022 | Java | No comments

C Program – Structure

Before we begin with our basic concepts of the C programming language let’s take a look at the C Program -Structure of a simple code for better understanding.

February 3, 2022 | C | No comments

Advertisement