Skip to content

KUSHAGRA-JAISWAL/MY-JAVA-PROGRAMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Section

Basics

Programs Discription
1. Hello.java: The very first java program to print the text you want to print.
2. Variable.java: Java program to Show the concept of variables and how to access them.
3. InputAddition.java: Java program to accept two number from user and perform addition operation.

Operators

Programs Discription
1. ArthmeticOperator.java: Java program to Show the concept of Arthmetic Operators by making a Simple Calculator.
2. RelationalOperator.java: Java program to Show the concept of Relational Operators.
3. LogicalOperator.java: Java program to Show the concept of Logical Operators.
4. IncrementDecrementOperator.java: Java program to Show the concept of Increment Decrement Operators.
5. TernaryOperator.java: Java program to Show the concept of Ternary Operators by finding greatest among three.

Control Flow

Conditional_statements

Programs Discription
1. ConditionIf.java: Java program to Show the concept of Conditional Statements if.
2. ConditionIfElse.java: Java program to Show the concept of Conditional Statements if else.
3. ConditionElseIf.java: Java program to Show the concept of Conditional Statements else if.
4. NestedIfElse.java: Java program to Show the concept of Conditional Statements Nested if else by finding greatest among three numbers.
5. SwitchCase.java: Java program to Show the concept of Switch Case.

Looping_statements

Programs Discription
1. ForLoop.java: Java program to Show the concept of Looping condition for loop by printing the table of any number.
2. WhileLoop.java: Java program to Show the concept of Looping condition While loop by finding any number is odd or even.
3. DoWhileLoop.java: Java program to Show the concept of Looping condition do While loop.

Methods_Functions

Programs Discription
1. UserMethods.java: Java program to Show the concept of User Defined Methods by creating sum method.

Arrays

Programs Discription
1. ArrayBasics.java: Java program to Show the concept of Arrays and printing them using for each loop.
2. ArrayInput.java: Java program to Show the concept of taking input from user in Arrays.
3. ArraySort.java: Java program to Show the concept of sorting the Arrays.
4. ArrayTwoD.java: Java program to Show the concept of 2D Arrays.

Strings

Programs Discription
1. StringBasics.java: Java program to Show the concept of Strings.
2. StringImmutable.java: Java program to Understand the concept of why strings are immutable.

Class_Objects

Programs Discription
1. Person.java: Java program to Show the concept of Classes and Objects.

Constructors

Programs Discription
1. ConstructorBasics.java: Java program to Show the concept of Constructors.
2. DefaultConstructor.java: Java program to Show the concept of Default Constructor.
3. ParametrizeConstructor.java: Java program to Show the concept of Parametrize Constructor.
4. CopyConstructor.java: Java program to Show the concept of Copy Constructor.
5. PrivateConstructor.java: Java program to Show the concept of Private Constructor.

Special Keywords

Programs Discription
1. this.java: Java program to Show the concept of This Keyword.
2. super.java: Java program to Show the concept of Super Keyword.

Oops

Encapusulation

Programs Discription
1. Bank.java: Java program to Show the concept of Encapsuation by making a small banking system.

Abstraction

Programs Discription
1. BankService.java: Java program to Show the concept of Abstraction by making a small banking system.
2. AnimalAbs.java: Java program to Show the concept of Abstraction by an example of animals.
3. InterfaceExp.java: Java program to Show the concept of Abstraction using Interface.

Inheritance

Programs Discription
1. SimpleInheritance.java: Java program to Show the concept of Simple Inheritance.
2. MultilevelInheritance.java: Java program to Show the concept of Multi-level Inheritance.
3. MultipleInheritance.java: Java program to Show the concept of Multiple Inheritance.
4. HirerchicalInheritance.java: Java program to Show the concept of Hirerchical Inheritance.

Polymorphism

Programs Discription
1. MethodOverloaing.java: Java program to Show the concept of Compiletime Polymorphism Method Overloading.
2. MethodOverriding.java: Java program to Show the concept of Runtime Polymorphism Method Overriding.

Exception_Handling

Programs Discription
1. ExceptionEx1.java: Java program to Show the concept of Exception Handling.
2. NullPointerEx.java: Java program to Show the concept of Null Pointer Exception.
3. NumberFormatEx.java: Java program to Show the concept of Number Format Exception.
4. FinallyBlock.java: Java program to Show the concept of Finally Block in Exception Handling.
5. MultiTryCatch.java: Java program to Show the concept of Multiple Try Catch Block in Exception handling.
6. MultiCatch.java: Java program to Show the concept of Multiple Catch Block in Exception handling.
7. NestedTry.java: Java program to Show the concept of Nested Try Block in Exception handling.
8. NestedCatch.java: Java program to Show the concept of Nested Catch Block in Exception handling.
9. NestedFinally.java: Java program to Show the concept of Nested Finally Block in Exception handling.
10. ThrowDemo.java: Java program to Show the concept of Throw in Exception handling.
11. ThrowsDemo.java: Java program to Show the concept of Throws in Exception handling.
12. UserDefinedEx.java: Java program to Show the concept of User Defined Exception in Exception handling.
13. ExceptionPropogation.java: Java program to Show the concept of Exception Propogation in Exception handling.

File_Handling

Programs Discription
1. CreateFile.java: Java program to Show the concept of File Handling, how to create a file.
2. WriteFile.java: Java program to Show the concept of File Handling, how to perform Write operation in Files.
3. ReadFile.java: Java program to Show the concept of File Handling, how to perform Read operation in Files.

Multithreading

Programs Discription
1. ThreadClass.java: Java program to Show the concept of Multithreading by extending Thread Class.
2. RunnableInterface.java: Java program to Show the concept of Multithreading by implementing Runnable Interface.
3. ThreadScheduler.java: Java program to Show the concept of Thread Scheduler in Multithreading.
4. ThreadSleep.java: Java program to Show the concept of Thread Sleep in MultithreadingJion.
5. ThreadJoin.java: Java program to Show the concept of Join method in Multithreading.
6. SuspendResume.java: Java program to Show the concept of Suspend and Resume method in Multithreading.
7. ThreadYield.java: Java program to Show the concept of Suspend and Yield method in Multithreading.
8. ThreadStop.java: Java program to Show the concept of Stop method in Multithreading.
9. ThreadIsAlive.java: Java program to Show the concept of isAlive method in Multithreading.
10. ThreadIntrrupt.java: Java program to Show the concept of Interrupt method in Multithreading.
11. ThreadPriority.java: Java program to Show the concept of Priority in Multithreading.
12. SynchronizationBus.java: Java program to Show the concept of Synchronization in Multithreading.
13. MethodLevelSynchronization.java: Java program to Show the concept of Mehtod Level Synchronization in Multithreading.
14. SynchronizedBlock.java: Java program to Show the concept of Block Level Syncronization in Multithreading.
15. StaticSynchronization.java: Java program to Show the concept of Static Syncronization in Multithreading.

Generics

Programs Discription
1. NonGenericsCode.java: Java program to Show the concept of Non Generics Code in Java Generics.
2. GenericsCode.java: Java program to Show the concept of Generics Code in Java Generics.
3. RulesGenerics.java: Java program to Show the concept of Rules of Generics in Java Generics.

Examle Class Box Generics And Methods

Programs Discription
1. BoxGenerics.java: Java program to Show the concept of Box example in Java Generics.
2. Book.java: Java program to Show the concept of Box example Class Book in Java Generics.
3. Fruit.java: Java program to Show the concept of Box example Class Fruit in Java Generics.
4. BoxUtils.java: Java program to Show the concept of Box example Class BoxUtils in Java Generics.
5. TestBoxGenerics.java: Java program to Show the concept of Box example class TestBoxGenerics in Java Generics.
6. Boxable.java: Java program to Show the concept of Box example interface Boxable in Java Generics.
7. CardboardBox.java: Java program to Show the concept of Generic Hierarchies Using Java Generics.
8. Apple.java: Java program to Show the concept of Generic Hierarchies (Type Argument Hierarchies) Apple Class Using Java Generics.
9. TestGenericsHierarchies.java: Java program to Show the concept of Generic Hierarchies (Type Argument Hierarchies) Test Class Using Java Generics.
10. TestTypeInferences.java: Java program to Show the concept of Type Infrences in java Generics.
11. TestWildcards.java: Java program to Show the concept of Wildcards(?) in java Generics.

Mathmetical_Operations_Generics

Programs Discription
1. NumericalOperations.java: Java program to Show the concept of Mathmetical operations Using Java Generics.
2. TestNumericalOperations.java: Java program to Show the concept of Mathmetical operations Test Class Using Java Generics.

About

Best Learning Repo For Java Programming From Basics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages