Skip to main content
Side panel
Datapro - Empowering Skills
English (en)
Deutsch (community) (de_comm)
Deutsch (de)
Deutsch (du) (de_du)
English (en)
You are currently using guest access (
Log in
)
Core Java
General
Chapter1: Introduction of Java Technology
Chapter2: Introduction to Java Programming
Chapter3: Datatypes & Operators
Chapter4: Control Structures, Arrays, Strings & Wrapper Classes
Chapter5: Interfaces
Chapter6: Packages
Chapter7: Exception Handling
Chapter8: Input / Output in Java
Chapter9: Multithreading
Chapter10: Collections Framework
Home
Calendar
Core Java
Home
Courses
Programming Language
Core Java
Topic outline
General
Announcements
Forum
my forum
our java course book
our java course book
Core Java Final
Quiz
AdvJava Final Exam jan 2024
Quiz
Chapter1: Introduction of Java Technology
Java Editions
How much popular is Java Programming Language
What makes Java so special
Platform Independent Feature
What is Java, What is Java actually
S/W required
Java IDEs
Popular s/w developed using Java
Key Features of Java
First Java Program & Setting Path (temporary, permanent)
Phases from Coding to Execution in a Java Program
Sections in a Java Program
Comments, javadoc
Topics removed from C, C++
Java Tokens, separators, statements, operators, keywords
Java History/Evolution of Java
Java Versions
Quiz: 1
Book: 1
Chapter2: Introduction to Java Programming
Concatenation operator
Robust feature – demo
Creating an object
Reading an integer, Scanner object
Sum of two integers
Dealing with multiple classes
Dealing with fields/instance variables, setter method, String class
private fields, getter methods
Constructors
What if a field is not initialized
Visibility modifiers
Function call mechanisms in Java
this
reference
Another use of
this
reference
Comparing objects
Garbage collection
Printing the IDs of objects
static
fields
Predefined static methods
static
import
User defined static methods
extends
keyword
Method overriding, some points
super
keyword
Invoking base class constructors
Demo on both usages of
super
keywords
final
class,
final
methods &
final
fields
Upcasting, downcasting
Multiple inheritance in Java
Quiz: 1
Chapter3: Datatypes & Operators
Classification of datatypes
Loss of precision error
Typecasting
Modulus operator unlike in C
Relational operator unlike in C
Boolean logical operator unlike in C
Inconvertible types
Default values for fields
Concatenation operator revisited
Quiz: 1
Chapter4: Control Structures, Arrays, Strings & Wrapper Classes
Control structures classification
Using \t
Reverse a number unlike in C
Infinite loop unlike in C
break, continue
Labeled break, labeled break – nameless block, improper use of labeled break
Labeled continue
Arrays – declaration & definition – diff. methods
Accessing array elements
Robust feature – Array index out of bounds
length
property
2-D array declaration
Matrix program
Assigning arrays
Creating array of objects
Enhanced for loop
Strings intro., String class methods
Comparing using == operator
Comparing using equals()
String Vs StringBuffer
StringBuffer methods
compareTo()
StringTokenizer
Command line arguments
Wrapper classes – intro
Boxing, unboxing
Autoboxing, autounboxing
Converting String to integer
Converting integer to String
Quiz: 1
Chapter5: Interfaces
Every method is a virtual method-proof
What is an interface
Creating an interface – two examples
Multiple inheritance – through interfaces
Few points on Runtime polymorphism
Few points on Interfaces
A class can impl. any no. of interf. & at the same time extend a class
abstract
class,
abstract
methods
Why multiple inheritance is OK with interfaces
Using interfaces as container of constants
Quiz: 1
Chapter6: Packages
What is a package
Why packages
Types of packages
Creating & using a package, classpath
Creating & using a JAR file
Extracting a JAR file
To generate the entiere package structure automatically
Using javap to know the members of a library class
Using javap to see the bytecodes in a .class file
Quiz: 1
Chapter7: Exception Handling
What is an exception
What is exception handling
What should be done when an error occurs
Examples of exceptions
keywords used
Example without using exception handling
using exception handling ( ArithmeticException)
NumberFormatException( with/withour)
Multiple catch blocks
finally
clause
nested try/catch
throw
– introduction
Throwing a predefined exception class object
Throwing a userdefined exception class object
throws
clause introduction
Stack example
Random number generation
Demo on printStackTrace()
Exceptions & Error
Checked exceptions and unchecked exceptions
Quiz: 1
Chapter8: Input / Output in Java
Introduction
File class – knowing properties of a File, Deleting a file
Getting the list of filenames and subdirectory names in a directory
Listing only those files which end with a particular extension
Different ways of taking the input
InputMismatchException
FileInputStream, FileOutputStream
FileReader, FileWriter
BufferedReader, PrintWriter
DataOutputStream, DataInputStream
LineNumberReader Demo
Printing objects directly
Serialization/Deserialization
Quiz: 1
Chapter9: Multithreading
Introduction
Display current thread’s name
Another method
Changing name of current thread
sleep() demo
Creating our own-threads-two ways
Implementing Runnable interface – three varieties
Extending Thread class
isAlive(), join()
Synchronization- introduction
Synchronization –two varieties
Producer-Consumer problem
Inter-thread communication (Producer-Consumer problem solution)
Thread Life Cycle
Daemon Thread Vs User Thread
Quiz: 1
Chapter10: Collections Framework
Introduction
Hashset
Treeset
Arraylist
Iterator
Vector – four examples
Reverse()
Sort()
Linkedlist
Stack
Arrays class
Hashtable
Treemap
Hashmap Vs treemap Vs linkedhashmap
Date – three varieties
Generics
Getting system properties
Importance of Iterator over enhanced for loop
Importance of Property class – read properties
Importance of Property class – read properties
Collections Framework Hierarchy
Quiz: 1