Your SlideShare is downloading. ×
0
OOP Language Powerpoint
OOP Language Powerpoint
OOP Language Powerpoint
OOP Language Powerpoint
OOP Language Powerpoint
OOP Language Powerpoint
OOP Language Powerpoint
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

OOP Language Powerpoint

855

Published on

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
855
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Java Programming Language References: http://docstore.mik.ua/orelly/java-ent/jnut/ch01_02.htm Java For Dummies 4 th Edition by Barry Burd http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B http://en.wikipedia.org/wiki/Comparison_of_Java_and_C_Sharp http://en.wikipedia.org/wiki/Garbage_collection_(computer_science) http://en.wikipedia.org/wiki/Java_package
  • 2.
    • public class Greeting {
    • public void greet() {
    • System.out.println("hi");
    • }
    • }
  • 3.
    • This is the core value proposition of the Java platform. It is basically writing a code once. After creating a code, you can already run it on anywhere.
  • 4.
    • Java has a strong security wherein it allows the users to download suspicious codes over a network then runs it in a secured environment. Secured in a sense that it cannot do any harm to the system because Java’s security prevents it from infecting the system with a virus.
  • 5.
    • Classes are stored in separate files and are only loaded into the Java interpreter when needed.
    • These also refers to Java Packages which are compressed as JAR files which allows faster downloading of classes as a group instead of as a file.
    • Sample: import java.awt.*; import java.awt.event.*;
  • 6.
    • Garbage collection is a form of automatic memory management and Java uses it as a means of reclaiming memory instead of deallocation of memory.
  • 7.
    • public DelaCruzAngeEncoder() throws IOException
    • {
    • //bufferedreader in order to read and print file
    • //inputstreamreader to locate the input file location
    • int ctr = 0;
    • BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    • System.out.print("Enter file location: ");
    • String file = in.readLine();
    • in.close();
    • BufferedReader rdr = new BufferedReader(new FileReader(file));
    • String str;
    • while((str = rdr.readLine()) != null)
    • {
    • System.out.print(++ctr + ": ");
    • for(int i = 0; i < str.length(); i++)
    • {
    • if (result(str.toCharArray()[i]) == false)
    • {
    • System.out.print(str.toCharArray()[i]);
    • }
    • }
    • System.out.print(&quot; &quot;);
    • }
    • rdr.close();

×