100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2221 Midterm 1 Exam/113 Answered Questions $10.49   Add to cart

Exam (elaborations)

CSE 2221 Midterm 1 Exam/113 Answered Questions

 7 views  0 purchase
  • Course
  • CSE 2221
  • Institution
  • CSE 2221

CSE 2221 Midterm 1 Exam/113 Answered Questions

Preview 2 out of 10  pages

  • September 26, 2024
  • 10
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSE 2221
  • CSE 2221
avatar-seller
Nursephil2023
CSE 2221 Midterm 1 Exam/113
Answered Questions
What is Java? - - programming language developed by Sun
Microsystems/Oracle

- Java vs C/C++ - - - similar syntax, control, data structures

- imperative, object-oriented

- Imperative vs Declarative - - imperative: has instructions

declarative: mathematical

- Java: then vs now - - - originally designed for interactive television, found
its initial success in Internet applications

- now viewed as a general-purpose programming language

- Java Compilation - - 1) The Java compiler checks the source code of the
program in a .java file

2) If there are no compile-time errors, it generates a bytecode for the for the
program and saves it in a .class file

- JVM - - the program is executed by interpreting the bytecode that is
loaded

java and the JVM are a part of the JRE for your computer and OS

- Java End-to-End - - MyProg.java -> MtProg.class -> JVM / hardware/OS

- Significance of JVM - - - portability: "write once, run anywhere", JVM is
ubiquitous

- universality: program source code need not be in Java

- performace: extra layer comes at (surprisingly small) penalty in
performance

- javac - - a batch style compiler

, - command line arguments - - String[] args means that the main expects
the JVM to hand it an array of strings (called command-line arguments) when
it is executed

- Package - - i.e components w/ OSU CSE components,,

- Character-string constants/String literals - - "hello!"

- type - - the name of the set of all possible values that a variable might
have

ex. a set of strings, ints, etc

- Program vs. Mathematical Variable - - program variable: can change

mathematical variable: fixed value

- Examples of Program Type and Mathematical Models - - - String vs. string
of character
- boolean vs. boolean
- double vs. real

- Built-In/Primitive Data Types - - built-in: String

primitive: boolean, char, int, double

- camel case - - - the standard java convention for naming variables

- ex. myLuckyNumber

- literal - - - a data value appearing literally in a program

- int j = 14, char win = 'w'

- octoliteral stuff - - -

- escaped special character: single quote - - "I\'m"

- non-printing character: tab - - '\t'

- unicode character - - small greek pi

- octal integer (base-8)
hexadecimal integer (base-16) - - 035, oxla

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Nursephil2023. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

76945 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.49
  • (0)
  Add to cart