Skip to content

Shrujan2006/Module1.java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1.Addition.java ,Adds two numbers and displays the result.

2.Areaofcircle.java , Calculates area of a circle using user input for radius.

3.SDPR.java , Performs Sum, Difference, Product, and Remainder operations.

4.AssignmentOperatorsDemo.java,Demonstrates +=, -=, *= assignment operators.

5.Bitwise_Operation.java,Performs bitwise AND, OR, XOR with binary output.

  1. Even_odd.java, Checks if a number is even or odd using if-else logic.

7.InheritanceExample.java, Demonstrates basic inheritance structure with parent and child classes.

8.Largest_number.java, Finds the largest among given numbers.

9.Multiplication_table.java, Prints multiplication table of a number using a for loop.

10.RelationalOperator.java, Compares two numbers and prints which one is greater or if they are equal.

11.Ternary_operator.java, Uses ternary operator to determine if a number is even or odd.

12.TransportDemo.class, Demonstrates hierarchical inheritance with Transport, Bus, and Truck classes.

13.constructor.java, Shows how to use constructors to initialize object attributes.

14.if_else.java, Uses if-else to check if a number is positive, negative, or zero.

15.jumpstatement.java, Prints numbers from 1 to 10, skipping 5 using the continue statement.

16.overridding.java, Demonstrates method overriding with Doctor subclasses showing different consultation fees.

17.shapedemo.java, Inheritance-based program with Shape, Circle, and Rectangle classes.

18.string.java, Performs basic string operations.

19.swap.java, Swaps two variables (method not specified). 20.AND FEW MORE FROM 5TH MODULE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages