C applications can have memory leaks Managed memory access In Java memory is

C applications can have memory leaks managed memory

This preview shows page 29 - 43 out of 43 pages.

C++ applications can have memory leaks. Managed memory access. In Java memory is managed for us. JVM automatically de- allocates the memory for us. Multiple inheritance Limited to single inheritance 11/08/2019 OBJECT ORIENTED PROGRAMMING 29
Image of page 29

Subscribe to view the full document.

Setting up the Environment INSTALLING THE PREREQUISITE 30
Image of page 30
The Java Language Specification, API, JDK, and IDE Read Section 1.6 of recommended book. This book uses Java SE to introduce Java programming. There are many versions of Java SE. The latest, Java SE 8, is used in this book. Oracle releases each version with a Java Development Toolkit (JDK). For Java SE 8, the Java Development Toolkit is called JDK 1.8 (also known as Java 8 or JDK 8 ). 11/08/2019 OBJECT ORIENTED PROGRAMMING 31
Image of page 31

Subscribe to view the full document.

Installing JDK For Android Development, you need to have JDK installed on your computer Visit the Java JDK downloads page at technetwork/java/javase/downloads/jdk8-downloads- 2133151.html. 32
Image of page 32
33
Image of page 33

Subscribe to view the full document.

Installing JDK In the folder where you've downloaded the JDK, right-click on the jdk-8u51- windows-x64.exe file and select Run as administrator . 34
Image of page 34
35
Image of page 35

Subscribe to view the full document.

36
Image of page 36
37
Image of page 37

Subscribe to view the full document.

38
Image of page 38
39 Click
Image of page 39

Subscribe to view the full document.

Setting up the path for windows: Assuming you have installed Java in c:\Program Files\java\jdk directory Right-click on 'My Computer' and select 'Properties'. Click on the 'Environment variables' button under the 'Advanced' tab. Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'. © Lethbridge/Laganière 2005 CHAPTER 2: REVIEW OF OBJECT ORIENTATION 40
Image of page 40
Popular Java Editors Download and install NetBeans IDE from the link © Lethbridge/Laganière 2005 CHAPTER 2: REVIEW OF OBJECT ORIENTATION 41
Image of page 41

Subscribe to view the full document.

A Simple Java Program(Listing 1.1) public class Welcome { public static void main(String[] args) { // Display message Welcome to Java! on the console System.out.println( "Welcome to Java!" ); } } 11/08/2019 OBJECT ORIENTED PROGRAMMING 42
Image of page 42
All done, time for Lunch! OBJECT ORIENTED PROGRAMMING 11/08/2019 43
Image of page 43
  • Fall '14
  • Dr Haroon

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes