Download presentation
Presentation is loading. Please wait.
1
CS240: Advanced Programming Concepts
Class Intro Java Basics Android
2
Outline Meta Data Expectations Introduction To Java
Fiddling With Android
3
Meta Data Instructor: Dr. Frank Jones
3372 TMCB Class Website: Course Language: Java Course IDE: Android Studio ( Officially Supported Device: Kindle Fire ( Recommended Emulator: AMIDuOS (
4
Expectations Respect Use of Electronic Devices Effort
Self – be on time, be prepared, raise your hand, speak politely, pay attention Others – be on time, be prepared, raise your hand, speak politely, pay attention Use of Electronic Devices Appropriate Timely Revocable Effort Significant: 3 “easy” projects; 2 “serious” projects Individual: You are on your own*; !!Programming Exam!! On Time No “Time Stamp” Submissions *TAs and instructor are here to help
5
Expectations Cont. Fun
6
Java: A VERY Brief Introduction
7
Why Java? C++ Cross Platform: Write “once” compile many, run anywhere… Supports Object Oriented Programing: Supports classes etc. Familiar Syntax: Based upon C Fast (very) Java Cross Platform: Write “once” compile “once”, run anywhere… Truly Object Oriented Language: Everything is a class Familiar Syntax: Closely resembles C++ Fast (enough very)
8
C++ (Compiled Language) Model
9
Interpreted Language Model
What does this mean for performance?....
10
Example: C++ vs Interpreted Java
Demo (with –Xint flag) Note: Credit is given to the blog “beyondjava.net” which provided the example java source code this demo has been derived from… … and to “About.com” which made available the high resolution timer class utilized in the c++ implementation.
11
Bring on the JIT (Just In Time) Compiler (Note: This example is based on Oracle’s Jrockit JVM)
12
But Wait, There’s More… Runtime Optimization Function Inlining
Selective Compilation Data Optimizations Etc…
13
Back to Performance Demo…
This time we enable the JIT and optimizations… (i.e. no –Xint flag)
14
Results…
15
Result 2 (a bit easier)…
16
Yet Another Java Resource…
17
Working With a Physical Device
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.