Skip to content

Pramodgrg/java-notes

 
 

Repository files navigation

Java Notes

Java Icon

Arjun Adhikari

BCH compliance

Java is a general-purpose computer-programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.

In a hurry ?

  1. Basics
  2. Control Flow
  3. Arrays
  4. Classes and Objects
  5. Inheritance
  6. Packages
  7. Exception
  8. IO
  9. Applet
  10. AWT
  11. Managing Layout
  12. Event
  13. Swing
  14. Graphics
  15. JDBC
  16. Networking

Basics

Basics Icon

Introduction, History
Benefits of Java & Platform Independency
Identifier
Reserved Words
Data Types // TBC
Literals

Control Flow

Control Flow Icon

If Else
While
Do while
For Loop
For Each
Switch Case

Arrays

Arrays Icon

About Array
Array as Matrix
Conventional Array Representation
Array Representation 01
Array Representation 02

Classes and Objects

Classes and Objects Icon

Basics
More on Classes and Objects
Access Modifiers
Constructors
Nested Inner Class
Final
Static

Inheritance

Inheritance Icon

Introduction
Super Class & its Access
Order of Derivation

⤴ How constructor are executed in inheritance ?

Method Overriding
Dynamic Method Dispatch

⤴ How Java implements run-time polymorphism ?

Final with Inheritance
Abstract Class
Interface
Implementing Interface
Interface can be Extended
Nested Interface

Packages

Packages Icon

Introduction & Implementation
Setting Classpath

Exception

Exception Icon

Introduction
Multiple Catch
Nested Try
Throw
Finally
Throws
Builtin Exception
Chained Exception

Input/Output

IO Image

File

Introduction

Programs on File class

Creates file inside folder
Creates files
Counts only files on default directory
Displays files and directories
Displays files and directories based on Command Line Arguments passed

FileWriter

Introduction
Code Implementation

FileReader

Introduction
Code Implementation

BufferedWriter

Introduction
Code Implementation

BufferedReader

Introduction
Code Implementation

PrintWriter

Introduction
Code Implementation

Applet

Applet Logo

Introduction
Code Implementation
Tutorials on Applet
Life Cycle of Applet
Passing Parameter to Applet
Setting Custom Font Face and Font Size
Nepal's Flag in Applet using AWT Graphics
Image in Applet

AWT

IllustrativePhoto

Introduction
AWT Controls

Label

Introduction
Code Implementation One
Code Implementation Two
Code Implementation Three

Button

Introduction
Code Implementation - Applet
Code Implementation - Frame

TextField

Introduction
Code Implementation - Applet
Code Implementation - Frame

TextArea

Introduction
Code Implementation

CheckBox

Introduction
Code Implementation

CheckBoxGroup

Introduction
Code Implementation

Choice

Introduction
Code Implementation

List

Introduction
Code Implementation

ScrollBar

Introduction
Code Implementation

Menu

Code Implementation

LayoutManager

Layout Image

FlowLayout

Introduction
Code Implementation

BorderLayout

Introduction
Code Implementation
Code Implementation Two

GridLayout

Introdution
Code Implementaion One
Code Implementation Two

CardLayout

Introduction
Code Implementation

GridBagLayout

Introduction
Code Implementation One
Code Implementation Two - Stages of Life

Event & Events Handling

Event Photo

Events, Event Listener, Event Source, Event Handling & Event Delegation Model
Events Classes
Event Listeners

Action Listener

Introduction
Code Implementation

Adjustment Listener

Introduction
Code Implementation // TODO

Component Listener

Introduction
Code Implementation // TODO

Container Listener

Introduction
Code Implementation // TODO

Focus Listener

Introduction
Code Implementation // TODO

Item Listener

Introduction
Code Implementation // TODO

Key Listener

Introduction
Code Implementation

Mouse Listener

Introduction
Code Implementation

MouseMotion Listener

Introduction
Code Implementation

MouseWheel Listener

Introduction

Text Listener

Introduction
Code Implementation

WindowFocus Listener

Introduction
Code Implementation // TODO

Window Listener

Introduction
Code Implementation

Adapter Class

Introduction
Code Implementation One
Close By Window Button

Swing

Swing Image
Swing Components
Swing's Component's Hierarchy
Differences Between AWT and Swing

Multicasting

Introduction
Code Implementation

JApplet

Code Implementation

JFrame

Extending JFrame
JFrame By Association

JTextField

Code Implementation

JOptionPane

Code Implementation

Dialog in Swing

Code Implementation

Graphics

Graphics Logo

Color

Introduction
Color Controls
Demonstrates Color using JPanel
Demonstrates Color using Applet
Show Colors

Font

Introduction
Custom Font and Size
Font Metrics Introduction
Font Metrics Implementation

Geometry

Introduction
DrawArc Implementation
DrawOval Implementation
DrawRect Implementation
PolyLine Implementation
Polygon Implementation
Round Rectangle Implementation

Exercises

Smileys
Bar Chart
Nepal's Flag

JDBC

Database Image

Introduction
Difference between ODBC and JDBC
Steps to develop JDBC Application
Difference between Statement and Prepared Statement
JDBC Features
JDBC Drivers
SQL Commands
SQL Injection

Implementation

Select Operation
Select Operation Two
Create Operation
Create Table from Java Code
Update Operation
Delete Operation

Networking

Networking Image
Introduction
URL Class
InetAddress Class
InetAddress Implementation
URL Implementation
URL Connection Implementation
HttpURL Connection Implementation
Is Internet Available ?
Whois Implementation

Socket Programming

Introduction
Chat Application
ConnectionLess Networking
ConnectionLess Messaging

About

Complete Java Note for colleges in Nepal.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.7%
  • Other 0.3%