Java Programming: Common Misconceptions Debunked

 
Java Programming Language
 
CS340100, NTHU
Yoshi
 
Course
 
Course Number: CS 340100
Credit
2
Size of Limit
110
Course Title
Java Programming Language
Instructor
黃世傑
Time
M5M6R5
Room
資電
Room
 
234
 
1-2
 
Teaching Assistants
 
Name: 
張苑瑩
Location: EECS Room 734
Email: bulapalm@gmail.com
 
Name: 
周雋鎧
Location:
 
EECS Room 734
Email: kavenc
@gmail.com
 
1-3
 
The Goal of Course
 
本課程主要說明
JAVA
程式語言的內容與其物
件導向的基本概念,並且強調程式的再用
性與繼承延伸性。
透過本課程讓同學能夠了解
JAVA
的寫法,並
能自行撰寫應用程式,進而輔助同學考取
SCJP
的證照。
透過本課程能讓同學會使用其他網路上
JAVA
公開的程式碼,加以利用來輔助
PROJECT
製作。
 
1-4
 
The Wrong Concept about JAVA
 
Java is an extension of HTML. JavaScript is a
simpler version of Java.
Java 
 
HTML 
完全是兩回事
Java 
 
JavaScript 
完全是兩回事
Java is an easy programming language to learn.
Maybe yes, maybe not.
其實要寫的完全符合
JAVA
開發的概念很困難
!
Java has an easy environment to program.
JAVA SDK
一點也不方便,除非你很習慣用
command line
。要方便就要使用 
IDE
 
1-5
 
The Wrong Concept about JAVA (2)
 
Java will become an universal programming
language for all platforms.
This is possible, only in theory…
You still need virtual machine (VM) anywhere
Java executes program quickly
Java is not faster than C++ for most situations
 
1-6
 
The Wrong Concept about JAVA (3)
 
Java has good memory management
Java does not have “pointer” and uses “automatic
garbage collection”
C/C++ may have “Memory Leak“
“Memory Leak“ : out of memory finally
But using “pointer” well brings benefits
You can release the memory space by yourself
 
1-7
 
The Wrong Concept about JAVA (4)
 
Java is only a toy
 
programming language
Counterexamples!
Desktop
Azureus
The 2
nd
 popular in SourceForge (the 1
st
 is eMule)
Web-application
JSP, Servlet in e-banks, companies
Handheld devices
Android (Dalvik VM)
J2ME games
 
1-8
 
Ranking (2010)
 
http://www.tiobe.com/index.php/content/pa
perinfo/tpci/index.html
 
1-9
 
Ranking cont’d (2010)
 
1-10
 
Books and Website
 
Only reference books
Core Java 2
Head First Java
Head First Design Pattern
Developing Software with UML
Design Patterns
Java
語言上的實際應用
O’Reilly 
專門系列
Ex: Java I/O, Java Networking, etc
Java JDK 5.0
 學習筆記
Website
http://www.javaworld.com.tw
 (
中文
)
http://java.sun.com/javase/6/docs/api/
http://java.sun.com/docs/books/tutorial/
 
1-11
 
Syllabus
 
Java
基本概念 
& 
環境設定
Class, Object, 
以及語法概念
, Inheritance,
Polymorphism
資料表示 法,運算式,陣列,
Coding
conventions, documents
Core library
探討
, 
Collection, Regular Expression
Exceptions
Thread 
 
may be a big trouble for newbie
Network programming
Jakarta, 3rd-party libraries
Design concepts (Basic design patterns)  and UML
Basic GUI programs (Cover if we have time)
Web-application, JSP, Servlet (Cover if we have time)
 
1-12
 
Project & Homework
 
Three coding homework last year
This year may extend to 6~8, according to the comments
1 final project
 
1-13
 
Evaluation
 
上課問答
(10%) 
 Bonus
以復習為主的簡易問答
作業 
& 
上機考
(
40
%)
請按照
deadline
時間繳交,若有延遲繳交分數將會
打折扣
!
期中考
(10%)
期末考
(25%)
Project
與上台報告
(25%)
 
1-14
 
Course Links
 
http://www.cs.nthu.edu.tw/~d9662827/cs340
100/
telnet://hulabear.twbbs.org
 java_happy
 
1-15
 
1-16
Have fun!
Slide Note
Embed
Share

Explore and debunk common misconceptions about the Java programming language, from its relation to other languages and performance comparisons to memory management and real-life applications. Uncover the truths behind these myths to gain a clearer understanding of Java's capabilities and versatility.

  • Java Programming
  • Misconceptions
  • Performance
  • Memory Management
  • Real-life Applications

Uploaded on Sep 24, 2024 | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Java Programming Language CS340100, NTHU Yoshi

  2. Course Course Number: CS 340100 Credit 2 Size of Limit 110 Course Title Java Programming Language Instructor Time M5M6R5 Room Room 234 1-2

  3. Teaching Assistants Name: Location: EECS Room 734 Email: bulapalm@gmail.com Name: Location: EECS Room 734 Email: kavenc@gmail.com 1-3

  4. The Goal of Course JAVA JAVA SCJP JAVA PROJECT 1-4

  5. The Wrong Concept about JAVA Java is an extension of HTML. JavaScript is a simpler version of Java. Java HTML Java JavaScript Java is an easy programming language to learn. Maybe yes, maybe not. JAVA ! Java has an easy environment to program. JAVA SDK command line IDE 1-5

  6. The Wrong Concept about JAVA (2) Java will become an universal programming language for all platforms. This is possible, only in theory You still need virtual machine (VM) anywhere Java executes program quickly Java is not faster than C++ for most situations 1-6

  7. The Wrong Concept about JAVA (3) Java has good memory management Java does not have pointer and uses automatic garbage collection C/C++ may have Memory Leak Memory Leak : out of memory finally But using pointer well brings benefits You can release the memory space by yourself 1-7

  8. The Wrong Concept about JAVA (4) Java is only a toy programming language Counterexamples! Desktop Azureus The 2nd popular in SourceForge (the 1st is eMule) Web-application JSP, Servlet in e-banks, companies Handheld devices Android (Dalvik VM) J2ME games 1-8

  9. Ranking (2010) http://www.tiobe.com/index.php/content/pa perinfo/tpci/index.html Position Feb 2010 Position Feb 2009 Delta in Position Programming Language Ratings Feb 2010 Delta Feb 2009 Status 1 1 Java 17.348% -2.05% A 2 2 C 16.602% +0.76% A 3 5 PHP 10.001% +1.22% A 4 3 C++ 9.447% -0.19% A 5 4 (Visual) Basic 7.051% -1.79% A 6 7 8 9 6 7 8 9 C# 5.015% 4.314% 3.600% 2.656% -0.05% -0.25% -0.52% -0.97% A A A A Python Perl Delphi 10 10 JavaScript 2.636% -0.90% A 1-9

  10. Ranking contd (2010) 1-10

  11. Books and Website Only reference books Core Java 2 Head First Java Head First Design Pattern Developing Software with UML Design Patterns Java O Reilly Ex: Java I/O, Java Networking, etc Java JDK 5.0 Website http://www.javaworld.com.tw ( ) http://java.sun.com/javase/6/docs/api/ http://java.sun.com/docs/books/tutorial/ 1-11

  12. Syllabus Java & Class, Object, , Inheritance, Polymorphism Coding conventions, documents Core library , Collection, Regular Expression Exceptions Thread may be a big trouble for newbie Network programming Jakarta, 3rd-party libraries Design concepts (Basic design patterns) and UML Basic GUI programs (Cover if we have time) Web-application, JSP, Servlet (Cover if we have time) 1-12

  13. Project & Homework Three coding homework last year This year may extend to 6~8, according to the comments 1 final project 1-13

  14. Evaluation (10%) Bonus & (40%) deadline ! (10%) (25%) Project (25%) 1-14

  15. Course Links http://www.cs.nthu.edu.tw/~d9662827/cs340 100/ telnet://hulabear.twbbs.org java_happy 1-15

  16. Have fun! 1-16

More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#