1 / 6

java generics

PPT presentation

Download Presentation

java generics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JAVA  GENERICS GET YOUR DATA STRUCTURES CORRECT FIRST, AND THE REST OF THE PROGRAM WILL WRITE ITSELF."

  2. USING OBJECTS THEREFORE ALL CLASSES ARE DESCENDANTS OF OBJECT POLYMORPHISM PRIMITIVES HANDLED BY WRAPPING THEM IN OBJECTS.?INT – INTEGER, CHAR - CHARACTER

  3. USING  GENERIC TYPES BACK TO JAVA'S ARRAYLIST ARRAYLIST LIST1 = NEW ARRAYLIST(); STILL ALLOWED, A "RAW" ARRAYLIST WORKS JUST LIKE OUR FIRST PASS AT GENERICLIST CASTING, LACK OF TYPE SAFETY

  4. GENERICS TYPES JAVA HAS SYNTAX FOR PARAMETERIZED DATA TYPES REFERRED TO AS GENERIC TYPES IN MOST OF THE LITERATURE A TRADITIONAL PARAMETER HAS A DATA TYPE AND CAN STORE VARIOUS VALUES JUST LIKE A VARIABLE GENERIC TYPES ARE LIKE PARAMETERS, BUT THE DATA TYPE FOR THE PARAMETER IS DATA TYPE THIS IS AN ABSTRACTION.

  5. PRAESENT FRINGILLA DUI PROIN SIT AMET TURPIS IN ERAT ALIQUAM CONSEQUAT. MAECENAS IN PURUS SIT AMET NEQUE CONGUE CURSUS VEL UT ELIT. CURABITUR A IPSUM ACCUMSAN, CONGUE LACUS GRAVIDA, PELLENTESQUE

  6. THANK YOU

More Related