Posts

Showing posts from October, 2021

INDEX OF Core JAVA

Document Chapter Numbers and The Topics Covered in Them

AdvanceJava_AnonymousClass_LambdaExpression.java

  /* --> Anonymous class is an inner class without a name, which means that     we can declare and instantiate class at the same time.

Zeek_99_GregorianCalendar.java

/* --> get Railway Time(24 hour clock time) --> get 12hour clock time --> get day and date     Use Gregorian Calendar.    */

Zeek_98_CalendarClass.java

/*  Gregory calendar is calendar we use in our day to day life.  It has 12 months from January to December  30 or 31 days in each month except February.  In February 28 days(not a leap year) or 29 days when its a leap year   */

Zeek_97_NewDateTime.java

  /*  --> Getting Today's Date and Time using Java      --> Methods like  --> getDate(),getDay(),getHours(),getMinutes(),getSeconds(),etc  --> Are depricated in new Java Documentation but in eclipse IDE somehow works  */

Zeek_96_DateAndTime.java

  /*  --> Date in java is stored in form of a long number.    --> This long number[currentTimeMillis()] holds the number of milliseconds passed      since 1 January 1970 till now .   */

Zeek_95_HashSet.java

  /*  Please try using Oracle Documentation for better references.  

Zeek_94_ Hashing in Java

  What is hashing in Java and why it is used?

Zeek_93_ArrayDeque.java

  /* --> An ArrayDeque (also known as an “Array Double Ended Queue”, pronounced as “ArrayDeck”)

Zeek_92_LinkedListDemoMethods.java

  /* Most of the methods of ArrayList and LinkedList are same....

Zeek_92_A_ ArrayList and LinkedList

  Difference between ArrayList  and LinkedList

Zeek_91_ArrayListDemoMethods.java

  /* import java.util.*;  ---------> Means you are accessing everything from utils class.

NOTE IMPORTANT

  In this blog I have learned through  various platforms like

Zeek_88 & 89_Collections Framework and Hierarchy (Starting Advanced Java)

Image
                          STARTING ADVANCED JAVA

Zeek_Ch14_PractiseSet1.java

  /* --> Create an array of index 6.

Zeek_85_FinallyBlock.java

  /* --> Java finally block is a block used to execute important code such as closing the connection, etc.

Zeek_84_ThrowVSThrows.java

  /*  throw and throws is the concept of Exception Handling.  

Zeek_83_InheritingExceptionClass.java

  /*   (CUSTOM OR USER-DEFINED) EXCEPTIONS  

Zeek_82_NestedTryBlock.java

  /* --> In Java, using a try block inside another try block is permitted. --> It is called as nested try block.

Zeek_81_HandlingSpecificExceptions.java

  /* Write a code which deals with specific unchecked exceptions in a unique way. For eg- If Arithmetic Exceptions occurs print an instruction.         If ArrayIndexOutOfBoundsException  occurs print different instruction ,etc */

Zeek_80A_Types of Exceptions in Java

Image
Types of Java Exceptions

Zeek_80_TryCatchBlock.java

  /*   Sometimes during writing codes.There are some parts that can throw runtime errors.   Because of few runtime errors the entire code crashes(Entire Code cannot run).  

Zeek_79_Errors.java

  /*  Explain examples of Syntax,Logical and Runtime errors while coding.   */

Zeek_78_Types of Errors in Java

  Types of Errors in Java

Zeek_Ch13_PractiseSet2.java

  /* --> Write a code which gives us the state of the thread(i.e -if thread is new or runnable)   */

Zeek_Ch13_PractiseSet1.java

/* --> Write a code in which a thread is executed infinitely after 10 seconds of running the code .   */

Zeek_75_ThreadMethods.java

  /*       Thread Methods:

Zeek_74_ThreadPriority.java

  /* --> Each thread have a priority. --> Priorities are represented by a number between 1 and 10. ---> In most cases, thread schedular schedules the threads according to their priority      (known as preemptive scheduling).  

Zeek_73_ThreadConstructors.java

/* --> Below are commonly used constructors of Thread class    (Runnable and String defined in Thread class[SEE ORACLE DOCUMENTATION]. Hence use super keyword)  

Zeek_72_Life-Cycle of a Thread

Life-Cycle of a Thread

Zeek_71_RunnableInterfaceThread.java

  /* --> In Zeek_70_JavaThread we inherited(EXTEND) class Thread for seeing concurrency by threads

Zeek_70_JavaThread.java

/* --> Parallelism- Codes Run simultaneously(At a moment all codes running together).   --> Concurrency - Concurrency means multiple tasks which start, run, and complete in  overlapping time periods,in no specific order(At a moment only one code running).

Zeek_69_Multiprocessing And Multithreading in Java

  What is a thread in Java?

Zeek_65_AccessModifiers and what they can access

Modifier Class Package Subclass World

Zeek_64_JavaPackages(Understanding Encapsulation)

Image
  WHAT IS JAVA PACKAGE?

Zeek_62_63_Compiler_VS_Interpreter_and_Java platform independent or not

Image
WHAT DOES COMPILER OR INTERPRETER DO ?

Zeek_Ch11_PractiseSet2.java

  /*  Create a  TV that has features like channelNo(),dishConnection()  Create a LCD_TV that has features of TV plus dolbySound(),hdDisplay(),sleekDesign()  

Zeek_Ch11_PractiseSet1.java

  /*  --> Create a Monkey class that jumps() and bite() and   -->  An interface of BasicAnimals that eat() and sleep()

Zeek_59_Polymorphism.java

  /*Refer to Zeek_49_DynamicDispatch_RuntimePolymorphism

Zeek_58_InheritanceInInterafaces.java

  /*  The following conditions are true regarding inheritance hierarchy:

Zeek_57_DefaultMethodsInInterfaces.java

  /* --->  Create a class MySmartPhone which inherit interfaces MyCamera,MyWifi,MyMemory       and inherits the class CellPhone.

Zeek_56_Multiple Inheritance in Java

  What is Multiple Inheritance?

Zeek_54_Interfaces.java

  /*  Interface in English is a point where two systems meet and interact.

Zeek_53_Abstract.java

  /* --> Abstract in English means existing in thought or as an idea without concrete existance.

Zeek_Ch10_PractiseSet2.java

   /* --> Create a class rectangle with its length and width.  --> Create a class cuboid which is sub class of rectangle(Using concepts of inheritance). --> Use constructors to set its length,width and height. --> Calculate totalSurfaceArea and volume of cuboid    */

Zeek_Ch10_PractiseSet1.java

    /* --> Create a class circle where you define its radius. --> Create a class cylinder with circle class as parent class (using concepts of inheritance ). --> Use getter setter to set values of radius and height.  */

Zeek_49_DynamicDispatch_RuntimePolymorphism.java

  /*    Dynamic Method Dispatch or Runtime Polymorphism---

Zeek_48_MethodOverriding.java

/* ----->Method Overriding- In Java If subclass (child class) has the same method as declared  in the parent class

Zeek_47_ThisSuperKeyword.java

  /* -----> this is a reference keyword -->  i.e variable name in method and class parameter same then for convenience use  this keyword for reference

Zeek_46_ConstructorsInInheritance.java

  /*    INHERITANCE HIERARCHY-The constructors are executed in order 1 -> 2 -> 3      [1]Parent --> [2]Child --> [3]Grandchild      i.e-This inheritance occurs When you create object of Grandchild class