Chap 1 Chap 2 Chap 3 Chap 5 Surprise Me 100 100 100 100 100 200 200

Slides:



Advertisements
Similar presentations
Basic Java Constructs and Data Types – Nuts and Bolts
Advertisements

STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
 2005 Pearson Education, Inc. All rights reserved Introduction to Classes and Objects.
1 Java Basics. 2 Compiling A “compiler” is a program that translates from one language to another Typically from easy-to-read to fast-to-run e.g. from.
Overloading methods review When is the return statement required? What do the following method headers tell us? public static int max (int a, int b)
Introduction to Java CS 331. Introduction Present the syntax of Java Introduce the Java API Demonstrate how to build –stand-alone Java programs –Java.
Fundamental Programming Structures in Java: Comments, Data Types, Variables, Assignments, Operators.
COMP 14: Primitive Data and Objects May 24, 2000 Nick Vallidis.
3.1 Documentation & Java Language Elements Purpose of documentation Assist the programmer with developing the program Assist other programers who.
Comp 248 Introduction to Programming Chapter 4 - Defining Classes Part A Dr. Aiman Hanna Department of Computer Science & Software Engineering Concordia.
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
Introduction to Programming Prof. Rommel Anthony Palomino Department of Computer Science and Information Technology Spring 2011.
By Nicholas Policelli An Introduction to Java. Basic Program Structure public class ClassName { public static void main(String[] args) { program statements.
11 Chapter 5 METHODS CONT’D. 22 MORE ON PASSING ARGUMENTS TO A METHOD Passing an Object Reference as an Argument to a Method Objects are passed by reference.
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Comments, Variables, etc.)
The Java Programming Language
JAVA Tokens. Introduction A token is an individual element in a program. More than one token can appear in a single line separated by white spaces.
Introduction to Computer Systems and the Java Programming Language.
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
 JAVA Compilation and Interpretation  JAVA Platform Independence  Building First JAVA Program  Escapes Sequences  Display text with printf  Data.
Using Data Within a Program Chapter 2.  Classes  Methods  Statements  Modifiers  Identifiers.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 2: Variables & Data Types.
Vladimir Misic: Java1 Basic Java Syntax The java language will be described by working through its features: –Variable types and expressions.
Java Classes Chapter 1. 2 Chapter Contents Objects and Classes Using Methods in a Java Class References and Aliases Arguments and Parameters Defining.
Introduction to Java Lecture Notes 3. Variables l A variable is a name for a location in memory used to hold a value. In Java data declaration is identical.
Introduction to Java Java Translation Program Structure
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
1 Basic Java Constructs and Data Types – Nuts and Bolts Looking into Specific Differences and Enhancements in Java compared to C.
Java Nuts and Bolts Variables and Data Types Operators Expressions Control Flow Statements Arrays and Strings.
Java Classes Chapter 1. 2 Chapter Contents Objects and Classes Using Methods in a Java Class References and Aliases Arguments and Parameters Defining.
Developed at Sun Microsystems in 1991 James Gosling, initially named “OAK” Formally announced java in 1995 Object oriented and cant write procedural.
By Mr. Muhammad Pervez Akhtar
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 5-1 Why Write Methods? Methods are commonly used to break a problem down.
Agenda Comments Identifiers Keywords Syntax and Symentics Indentation Variables Datatype Operator.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
Expressions Methods if else Statements Loops Potpourri.
COP 2551 Introduction to Object Oriented Programming with Java Topics –Introduction to the Java language –Code Commenting –Java Program Structure –Identifiers.
Classes - Intermediate
© 2006 Pearson Addison-Wesley. All rights reserved 1-1 Chapter 1 Review of Java Fundamentals.
AP Java Ch. 4 Review Question 1  Java methods can return only primitive types (int, double, boolean, etc).
JAVA Programming (Session 2) “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
Object Oriented Programming Lecture 2: BallWorld.
Introduction to Java Programming by Laurie Murphy Revised 09/08/2016.
Java and C# - Some Commonalities Compile into machine-independent, language- independent code which runs in a managed execution environment Garbage Collection.
C++ Lesson 1.
Information and Computer Sciences University of Hawaii, Manoa
JAVA MULTIPLE CHOICE QUESTION.
3 Introduction to Classes and Objects.
Yanal Alahmad Java Workshop Yanal Alahmad
Java Primer 1: Types, Classes and Operators
Lecture 2: Data Types, Variables, Operators, and Expressions
Programming Language Concepts (CIS 635)
Methods The real power of an object-oriented programming language takes place when you start to manipulate objects. A method defines an action that allows.
5 Variables, Data Types.
Defining Classes and Methods
An Introduction to Java – Part I, language basics
Chapter 1: Computer Systems
Sridhar Narayan Java Basics Sridhar Narayan
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
Recap Week 2 and 3.
Programs and Classes A program is made up from classes
Fundamental OOP Programming Structures in Java: Comments, Data Types, Variables, Assignments, Operators.
In this class, we will cover:
Classes, Objects and Methods
Names of variables, functions, classes
C Language B. DHIVYA 17PCA140 II MCA.
Corresponds with Chapter 5
Review of Java Fundamentals
Presentation transcript:

Chap 1 Chap 2 Chap 3 Chap 5 Surprise Me 100 100 100 100 100 200 200 200 200 200 300 300 300 300 300 400 400 400 400 400 500 500 500 500 500

This is the name of the file that contains the code written in the Java language. 100

What is source code?

This is the extension (after the This is the extension (after the .) of the file produced by the compiler upon successful compilation. 200

What is .class file?

This is what we call the words that have special meaning in Java. 300

What are reserved words? OR What are key words?

This is the name given to the contents of a .class file. 400

What is byte code?

This is the name we give to the interpreter which “executes” Java programs. 500

What is the Java Virtual Machine?

The following are both examples of ___________ final double abc; final int RATE; 100

What are constant declarations? What are declarations?

The following are both examples of ______________ int total; char letter; 200

What are declarations? What are variable declarations?

What symbol(s) open a block comment? 300

What are “/*”? What are “/**”?

The following are both examples of ______________ kb = new Scanner(System.in); twoDecimal = new DecimalFormat(“0.00”); 400

What are instantiations?

This symbol performs two different kinds of operations. 500

What is +? concatenation and addition

These are three of the 6 relational operators. 100

What is any combination of > < >= <= == !=

These are the three logical operators.

What are &&, ||, and ! 200

a > b total < item * TAX These are examples of a > b total < item * TAX

What are boolean expressions? What are expressions? 300

This is the term that describes the usual last “choice” in a switch statement?

What is “default”? 400

This expression determines of the String name contains the name “Frank”.

What is name. equals(“Frank”). OR What is name What is name.equals(“Frank”)? OR What is name.equalsIgnoreCase(“Frank”)? 500

The following is a method ____________. System.out.println(“Hello World”);

What is call? What is invocation? 100

With respect to method calls, this is what we call the part in yellow. System.out.println(“Hello World”);

What is actual parameter? What is argument? 200

In the following statement the yellow part describes this. public static void printMessage(String text)

What is formal parameter? What is parameter? 300

What do we call the part of the method header highlighted in yellow? public static String toString()

What is the return type? 400

A value returning method always ends with this.

What is the return statement? 500

When we use the new operator, we are making this.

What is an object? 100

Name the two primitive data types that are not integer or floating point values.

What are char and boolean? 200

In Javadoc comments, this is the tag to describe the parameters in a parameter list.

What is @param? 300

Two variables that reference the same object are known as this.

What are aliases? 400

Java passes parameters using call by this.

What is call by value? (or just value) 500