0% found this document useful (0 votes)
3 views1 page

Java Study Notes

Uploaded by

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

Java Study Notes

Uploaded by

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

Java Study Notes

Introduction

Java is an object-oriented language built around classes and objects.

Java Class Libraries

Includes java.lang, java.util, java.io, java.time.

Memory Concepts

Stack: local variables.


Heap: objects.
Garbage Collection handles memory cleanup.

Classes and Objects

Classes define structure; objects are instances.

Methods & Variables

Methods define behavior; instance variables store state.

Set/Get Methods

Used for encapsulation.

Primitive vs Reference Types

Primitives store values; reference types store memory addresses.

Constructors

Initialize new objects.

Control Statements

if/else, switch, loops.

Arrays

Fixed-size indexed structures.

You might also like