Menu
Topics Index
...
`

Example java Programs

Question Name
QueueDemo
DequeDemo
ComparableInterfaceDemo
LinkedHashSetDemo204
LinkedHashSetDemo
TreeSetSample
TreeSetCustomSortingDemo
EnumSetDemo
EnumMapDemo
WeakHashMapTest
WeakHashMapTest211
Void
ProcessDemo
TimeZoneDemo
PropertiesDemo
ReadOnlyCollectionsDemo
RuntimeDemo
ThreadDemo
ThreadWithRunnable
ThreadProgramming
InterThreadDemo
Compiler throwing an error with enum declared inside main method
Compiler throwing an error with enum declared inside main method223
Compiler throwing an error with enum declared inside main method224
PrintStreamDemo
ThreadSynchronization
ThreadSynchronization227
ThreadSynchronization228
SynchronizedBlocks
Static Synchroniztion
Demonstration of getName and getImplementationVersion methods
Generics
How Generics Improve Type Safety
Bounded Types
Generics in Methods and Constructors
Generics Upper Bounded Wildcard
Generics Unbounded Wildcard
Using enum type as argument in switch
This program demonstartes the concept of constructor in an enum
Program to demonstrate the concept of constructors and methods in an enum
Overriding methods for enum constants
Generics Lower bounded Wildcard
Type Erasure
Generic Interfaces
Instantiating a Scanner object by passing a File object as parameter
Instantiating a Scanner object by passing a String as parameter
Print Types
ThreadGroupDemo
DeadLockDemo
FileDemo
FilePermissionsDemo
InputStreamDemo
OutputStreamDemo
BufferedInputStreamDemo
BufferedOutputStreamDemo
ByteArrayInputStreamDemo
ByteArrayOutputStreamDemo
FilterInputStreamDemo
FilterOutputStreamDemo
CharArrayReaderDemo
CharArrayWriterDemo
PrintWriterDemo
Using IsDirectoryMethod
UsingFilenameFilter
ListFiles Alternattive
Making Directories
Simple Thread Program
Thread with Runnable
Creating Normal Thread
PackagesDemo
using clone method of Object class
Demo on PushbackReader
String Arrays Demo
LocaleDemo
Observer Demo
CurrencyDemo
RandomAccessFile Demo
Thread Safe Collections Demo
Singleton Collections Demo
Collections nCopies Demo
Simple Timer Task Example
Basic Formatter Demo
Format String Character Demo
Suspend Threads Using Wait And Notify
List Resource Bundle Demo
Average Scanner Demo
Formatting Numbers Demo
Random Access File Demo
Is An Amstrong Number Or Not
Print Amstrong Numbers In A Given Range
Is A Strong Number Or Not
Create Object Using Reflection

© meritcampus 2019

All Rights Reserved.

Open In App