Your SlideShare is downloading. ×
0
CHUYÊN Đ JAVA




       JAVA VS C#




Nguy n Hoàng Anh – nhanh@fit.hcmuns.edu.vn
Nội dung
    Program Structure   Exception Handling
    Comments            Package
    Data Types          Classes / Inte...
Program Structure
         JAVA       C#




3
Program Structure
         JAVA       C#




4
Comment
      JAVA   C#




5
Data Type
        JAVA   C#




6
Data Type
        JAVA   C#




7
Constants
        JAVA   C#




8
Enumeration
        JAVA   C#




9
Operator
           JAVA   C#




10
Operator overloading
         JAVA          C#




      Không h tr




11
Operator overloading
         JAVA          C#




      Không h tr




12
Operator overloading
         JAVA          C#




      Không h tr




13
Choices
          JAVA   C#




14
Loop
       JAVA   C#




15
Array
        JAVA   C#




16
Method
         JAVA   C#




17
Method
         JAVA   C#




18
Method
         JAVA   C#




19
String
         JAVA   C#




20
Exception
        JAVA   C#




21
Package
          JAVA   C#




22
Scope
        JAVA   C#




23
Class / Interface
          JAVA      C#




24
Constructors / Destructors
         JAVA                C#




25
Object
         JAVA   C#




26
Properties
         JAVA   C#




27
Structs
          JAVA   C#




28
Console I/O
        JAVA   C#




29
File I/O
           JAVA   C#




30
File I/O
           JAVA   C#




31
None Generics




                ?




32
None Generics




                ?




33
None Generics


                Compile Time:BUILD SUCCESSFUL




                Runtime: Error




34
Generics




35
Generics




36
Generics




           Compile Time: BUILD FAILED




           Runtime: SAFE




37
Generics – Collection Interfaces

                        Collection




              Set          List      Queue




  ...
Generics – ArrayList, LinkedList
           ArrayList,

                       List




           ArrayList          Link...
H I VÀ ĐÁP




40
Tham khảo

     Frank McCown :Java (J2SE 5.0) and C# Comparison
     The Java Language Specification Third Edition




41
Upcoming SlideShare
Loading in...5
×

2. java oop

2,105

Published on

java hướng đối tượng.

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,105
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
63
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "2. java oop"

  1. 1. CHUYÊN Đ JAVA JAVA VS C# Nguy n Hoàng Anh – nhanh@fit.hcmuns.edu.vn
  2. 2. Nội dung Program Structure Exception Handling Comments Package Data Types Classes / Interfaces Constants Constructors / Destructors Enumerations Objects Operators Properties Choices Structs Loops Console I/O Arrays File I/O Methods Generics Strings 2
  3. 3. Program Structure JAVA C# 3
  4. 4. Program Structure JAVA C# 4
  5. 5. Comment JAVA C# 5
  6. 6. Data Type JAVA C# 6
  7. 7. Data Type JAVA C# 7
  8. 8. Constants JAVA C# 8
  9. 9. Enumeration JAVA C# 9
  10. 10. Operator JAVA C# 10
  11. 11. Operator overloading JAVA C# Không h tr 11
  12. 12. Operator overloading JAVA C# Không h tr 12
  13. 13. Operator overloading JAVA C# Không h tr 13
  14. 14. Choices JAVA C# 14
  15. 15. Loop JAVA C# 15
  16. 16. Array JAVA C# 16
  17. 17. Method JAVA C# 17
  18. 18. Method JAVA C# 18
  19. 19. Method JAVA C# 19
  20. 20. String JAVA C# 20
  21. 21. Exception JAVA C# 21
  22. 22. Package JAVA C# 22
  23. 23. Scope JAVA C# 23
  24. 24. Class / Interface JAVA C# 24
  25. 25. Constructors / Destructors JAVA C# 25
  26. 26. Object JAVA C# 26
  27. 27. Properties JAVA C# 27
  28. 28. Structs JAVA C# 28
  29. 29. Console I/O JAVA C# 29
  30. 30. File I/O JAVA C# 30
  31. 31. File I/O JAVA C# 31
  32. 32. None Generics ? 32
  33. 33. None Generics ? 33
  34. 34. None Generics Compile Time:BUILD SUCCESSFUL Runtime: Error 34
  35. 35. Generics 35
  36. 36. Generics 36
  37. 37. Generics Compile Time: BUILD FAILED Runtime: SAFE 37
  38. 38. Generics – Collection Interfaces Collection Set List Queue SortedSet 38
  39. 39. Generics – ArrayList, LinkedList ArrayList, List ArrayList LinkedList 39
  40. 40. H I VÀ ĐÁP 40
  41. 41. Tham khảo Frank McCown :Java (J2SE 5.0) and C# Comparison The Java Language Specification Third Edition 41
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×