Core Java

Day 01 :  Environment Setup

  • Installation of JDK 8
  • Download Eclipse 
  • Eclipse
    • Open Eclipse -> Choose Workspace
    • Create New Java Project
    • Open Navigator -> Window -> Show View -> Navigator
    • Create Class and select main method
    • Run -> Java Application
    • Open Console -> Window -> Show View -> Console

Day 02 : Basic Java Examples

  • Datatypes : int, long, float,double,String
  • What is Class ?
  • How to create Method ?
  • How to pass Method Arguments ?
  • How to return values in Methods ?
  • How to store the values returned by Methods ?
  • How to invoke Static methods
  • How to create an Object for a Class ?
  • How to invoke a non-static method using Object ?
  • Exercise: Addition Program – add 2 numbers
  • String Utilities
    • Task #1 : Perform String concatenation
    • Task #2 : Write reusable method
    • Task #3: Write business logic in a separate class
    • Task #4: Use final keyword for constant values
    • Task #5: Invoke non static method by creating object
    • Task #6: Perform String Operations : UpperCase, LowerCase, Trim , Length
    • Task #7: StringBuffer and StringBuilder
  • Conditional Statement
    • Task #1 : Based on marks, decide Pass/Fail
    • Task #2: Convert the business logic to a reusable method
    • Task #3: Return the result
    • Task #4: Calculate the grade
  • Arrays:
    • Task #1: Store marks in array
    • Task #2: Calculate TotalMarks
    • Task #3: Calculate Percentage
    • Task #4: Array Exception

Day 03 : OOPS 

  • Function Overloading
  • Constructor
    • Task #1: Create an Account class
    • Task #2 : Create a constructor and initialize values
    • Task #3: Usage of this keyword
    • Task #4 : Add toString method
  •  Encapsulation
    • Task #1: Add Getter /Setters
  •  Inheritance
    • Function Overriding
  • Abstract class
  • Interface
  • this vs super
  • Exception Handling
    • Task #1: Try/Catch
    • Task #2 : throw vs throws
    • Task #3:  Try/Catch/Finally
    • Task #4:  User Defined Exception

Day 04 : Collections

Collections

  • Task #1: Create an ArrayList and store city names
  • Task #2: Create a Set
  • Task #3 : Create an TreeSet
  • Task #4: Create an HashMap
  • Task #5: Sort the collections
  • Task #6: Sort the collections with objects – using comparable interface
  • Task #7: How to make a collection readonly

Day 05 : IO

  • Task 1 : File Read API
  • Task 2:  File Write API