Git Product home page Git Product logo

java-codes's Introduction

Java-Codes

  1. Basic Calculator in Java
  2. Arrays in Java
  3. Method Overloading
  4. Constructor Overloading
  5. Add Two Numbers using Scanner
  6. How to Use static keyword in java. It's notes is given in "Static.java" .
  7. How to Use Static keyword using static block, constructors and methods in java. Check the code in "Static1.java" .
  8. How to create a Inner class in outer class and how to access the inner class of outer class by creating the objects in main method. You can find code in "InnerDemo.java" .
  9. Getting user input using Scanner and nextLine() for String input are running the code. You can find the code in "GettingUserInput.java".
  10. How to initialise the variables in Java, refer the code in "Variables.java".
  11. Array 1D demo in "ArrayDemo1.java"
  12. 2D and Jagged Array demo in "ArrayDemo2.java".
  13. How Enchanced for loop works in Java. Example in "EnhancedForInArrays.java".
  14. Variable length Argument example in Java. Sample code in "VarargsDemo.java".
  15. Multilevel Inheritance demo in "InheritanceDemo.java".
  16. How Super method works in the concept of Inheritence. The example code is in "SuperDemo.java".
  17. Dynamic Method Dispatch in the concept of Polymorphism. the code is in OverridingDemo.java.
  18. Encapsulation model code and how to bind the data to the methods and how to use setters and getters. sample code is in "EncapsulationDemo.java".
  19. example problem on encapsulation. code is in "EncapsulationDemo2.java".
  20. Wrapper Class demo and how to use Auto Boxing , Auto Unboxing and Boxing and Unboxing / Wrapping. How to use "praseInt()" to get the intger value of a string. Sample code is in "WrapperClassDemo.java".
  21. Abstract class usage and how to use a methods. Sample code is in "AbstractDemo.java".
  22. How to use super class and avoid using more methods instead of using more methods we can use abstract and sample code is in "AbstractDemo2.java".
  23. how to create Interface and how to use implements and how to achieve the things in interface. sample code is in "InterfaceDemo.java".
  24. How to create a object in interface using interface as a reference and implemnents as object. sample code is in "InterfaceDemo2.java".
  25. Anonymous Inner Class sample code is availabe in "AnonymousInnerClassDemo.java".
  26. Functional Interface and using lambda expression in java. sample code is in "FunctionalInterfaceDemo.java".
  27. Default method in interface and how it can be overridden and sample code is in "DefaultMethodDemo.java".
  28. How to solve ambigity issue in Multiple inheritance in Interface. Sample code is in "IssueWithMultipleInheritanceInInterface.java".
  29. Unchecked exceptio handling using try catch. sample code is in "ExceptionDemo.java".
  30. Multiple Catch Exception. We can use multiple catch and at the last it should be exception e. sample code is in "MultipleCatchException.java".
  31. Without using try, catch and finally how to throw the exception using only try block with different syntax. Sample code is in "UserInputThrowException.java".
  32. How to give user Defined exception in java. sample code is in "UserDefinedException.java".

follow @java_pirates on Instagram for more concepts of Java

java-codes's People

Contributors

jagadabichandrasekharvarma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.