[Go to site: main page, start]

0% found this document useful (0 votes)
10 views6 pages

Java Programming Language

The document provides a comprehensive overview of Java programming, covering topics such as computer fundamentals, programming languages, and the Java language specification. It includes sections on elementary programming concepts, selections, mathematical functions, loops, methods, single and bi-dimensional arrays, and object-oriented programming principles. Each section contains examples and common errors to aid in understanding and application of Java programming techniques.

Uploaded by

karimimatin938
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

Java Programming Language

The document provides a comprehensive overview of Java programming, covering topics such as computer fundamentals, programming languages, and the Java language specification. It includes sections on elementary programming concepts, selections, mathematical functions, loops, methods, single and bi-dimensional arrays, and object-oriented programming principles. Each section contains examples and common errors to aid in understanding and application of Java programming techniques.

Uploaded by

karimimatin938
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Java Programming language

Introduction to Computers, Programs, and Java


 What is computer?
 Programming Languages
 Operating Systems
 The Java Language Specification, API, JDK,JRE, and IDE
 A simple Java Program
 Creating, Compiling , and Executing a java Program
 Programming Style and Documentation
 Programming Errors
 Developing Java Programs Using Eclipse

Elementary Programming
 Reading Input from the Console
 Identifiers
 Variables
 Named Constants
 Naming Conventions
 Numeric Data Types and Operations
 Numeric Literals
 Operator precedence
 Displaying the Current Time
 Augmented Assignment Operators
 Increment and Decrement Operators
 Numeric Type Conversion
 Software Development Process
 Common Errors and pitfalls

Selections
 Boolean Data types
 If Statements
 Two-way If -else Statements
 Nested if and Multi-Way if-else Statements
 Common Errors and Pitfalls
 Generating Random Numbers
 Logical Operators
 Switch Statements
 Conditional Operators
 Operator precedence and associativity
 Debugging
 Examples:
o Computing Body Mass Index
o Computing Taxes
o Additions Quiz
o Determining Leap Year
o Lottery Game

Mathematical Functions, Characters, and Strings


 Common Mathematical functions
o Tringle Functions
o Rounding Functions
o Exponent Functions
 Character Data Type and Operations
 The String Type
 Formatting Console Output
 Examples:
o Guessing Numbers Game
o Printing the table with print
o Finding the distance between two points
o Finding the angles of an input tringle

Loops
 Flow chart
 The while Loop
 Loop Design Strategies
 Controlling a loop with User Confirmations or a sentinel Value
 The do-while loop
 The for loop
 Swap Concept
 Which Loop to Use?
 Nested Loops
 Minimizing Numeric Errors
 Keyword break and Continue
 Examples:
o Guessing Numbers
o Checking palindromes
o Guessing Magical Number
o Finding the even and odd numbers
o Subtractions quiz

Methods:
 Introduction of Methods
 How to Define Method
 Calling Method
 Void vs Value-Returning Methods
 Passing Parameters by Values
 Modularizing Code
 Overloading Methods
 The Scope of Variables
 Static concept of methods
 Concepts about Stack
 Examples :
o Converting Hexadecimals to decimals
o Generating Random Characters
o Finding the max Value
o Overloading max methods
o Finding the total of numbers
o Student Grade Method
o Finding the GCD

Single-Dimensional Arrays
 Array Introduction
 Array Process
o Printing array
o Filling array by random numbers
o Filling array by user
o Finding the total sum of all elements
o Finding the max element
o Shuffling array
o Shifting array
 Copying Array Concepts
 Passing array to methods
 For Each
 Concepts about Heap
 Variable-length Argument Lists
 Searching Arrays
 Sorting Arrays
 [Link]
o Sort
o Parallel Sort
o Binary Search
o Filling array
o Equals array
 Command-line Arguments
 Examples
o Analyzing Numbers
o Find the month by array
o Filling array by numbers
o Cards Game
o Counting occurrence of each letter

Bi-Dimensional arrays
 Introductions
 Dimensional Array Process
o Printing array
o Filling array by random numbers
o Filling array by user
o Finding the total sum of all elements
o Finding the greatest sum of rows
o Finding the greatest sum of columns
o Finding the max element
o Shuffling array
 Examples :
o Grading a Multiple Choice
OOP(Object Oriented Programming)
 Object oriented Thinking
 What is Object?
 Defining Classes for Objects
 What is Class?
 What is state, properties, attributes
 What are behaviors, method, action
 Constructor
o Standard constructor
o Overload constructor
 Access specifiers
 Data field Encapsulations
 Passing objects to method
 This keyword
 Inheritance
 Super class and sub classes
 Using super keyword
 override
 Override vs overload
 Polymorphism

You might also like