100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Programming in Java (CT-1 and 2) notes $7.49   Add to cart

Exam (elaborations)

Programming in Java (CT-1 and 2) notes

 1 view  0 purchase
  • Course
  • Institution

Unlock the secrets of Java programming with these comprehensive study notes on Unit 2 and Unit 3. Dive into the world of classes, objects, and streams as you master the fundamentals of declaring objects, methods, and variables. Explore advanced concepts such as method overloading, recursion, and ac...

[Show more]

Preview 3 out of 28  pages

  • May 21, 2024
  • 28
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
Programming in Java

Lecture notes for Btech CSE




FUNDAMENTALS OF JAVA TECHNOLOGY AND PROGRAMMING

, ● Developed by Greentalk team, initially named as OAK, then green later changed to
Java in
● Found by James gosling at Sun MicroSystems
● Syntax of C/ C++



Java platform features:


● Simple - It’s simple and easy to understand since it follows the same syntax as
C/C++.
● Robust & platform independent - It has strong memory management, exceptional
handling, error handling & automated garbage collection.
● Object oriented programming- It supports objects and classes.
● Portable- Java bytecode can be run into any machine with JVM.
● Multithreaded- Multiple threads can be run in Java concurrently.
● High performance


Java data types:

● Primitive



Boolean Truth value (0 or 1) - 1 bit

Char Character data type- 2 byte

Int Integer data type- 4 byte

Float Point values - 4 byte ( 6 to 7 decimal digits)

Long Same as int, but stores larger values - 8 byte

Double Same as float- up to 15 decimal digits- 8



1

, byte

Short 2 byte




● Non primitive - Array, string.

Java variables:

● Instance - Declared inside a class, but not inside a method.
● Static - With keyword static
● Local - Declared inside a method.

Constants:

Values which cannot be changed which are declared using the “final” keyword.

Scope of variable:

Declares where the variable is visible.

Lifetime of variable:

How long the variable existed before it was destroyed.

● Instance variables
● Local variables




Operators in Java:

Operators in Java can be used to perform operations.




2

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 rithvikaad. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

76800 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
$7.49
  • (0)
  Add to cart