Java Programming Language
Java Recent Articles!
Java Multiple Choice Questions
Overview, Basics, OOP concepts, Operators, Strings, Input and Output, Arrays , Arrays Class, Important Keywords in Java ,Java vs C++, Methods in Java, Constructors, Exception Handling, Regular Expressions, Inheritance, Interfaces and Abstract Classes, Java Packages, Multithreading, Garbage Collection, Wrapper Classes, Reflection in Java, File Handling, Collection in Java, Collection Interview FAQ’s ,Collections Class (Contains utility functions on Collections), Useful and/or Advanced Features, Image Processing, Networking in Java, Interview Questions, Misc, Multiple Choice Questions, Java 8 Stream Methods
- Setting up the environment
- The Hello World Example(Practice)
- Java Naming Conventions
- JVM
- JVM Stack Area
- Java Class File
- Differences between JDK, JRE and JVM
- Does JVM create object of Main class?
- Is main method compulsory in Java?
- File names and class names
- How to run java class file which is in different directory?
- Using predefined class name as Class or Variable name in Java
- Java Identifiers
- Data types
- How to define our own data type in java(enum)
- Variables
- Scope of Variables
- Loops in Java(Practice)
- For-each loop in Java
- For Loop in Java | Important points
- Decision Making(if, if-else, switch, break, continue, jump)(Practice)
- Switch Statement in Java(Practice)
- String in Switch Case in Java
- Forward declarations
- Widening Primitive Conversion
- Type conversion in Java
- Comments in Java
- Does Java support goto?
- Interesting facts about null in Java
- Using underscore in Numeric Literals
- Classes and Objects
- Java object storage
- Different ways to create objects in Java
- How to swap or exchange objects
- Inheritance in Java
- Encapsulation in Java
- Abstraction in Java
- Run-time Polymorphism in Java
- Association,Composition and Aggregation
- Access and Non Access Modifiers in Java
- Access Modifiers
- this reference
- Method Overloading
- Output of Java program | Set 22 (Overloading)
- Method Overriding
- Output of Java program | Set 18 (Overriding)
- Shadowing of static methods(Also called Method Hiding)
- Covariant return types
- Object class
- Flexible nature of java.lang.Object
- Overriding equals method of Object class
- Overriding toString() method of Object class
- Instance Variable Hiding
- initializer block in java(static block)
- instance initializer block in java(non-static block)
- Static vs Dynamic Binding
- Why Java is not a purely Object-Oriented Language?
- String Class(Practice)
- StringBuffer Class
- Initialize and Compare Strings
- StringTokenizer class
- String vs StringBuilder vs StringBuffer
- StringJoiner in Java8
- When to use StringJoiner over StringBuilder?
- Integer to String Conversions
- String to Integer– parseInt()
- Split() String method
- Swap two Strings without using third variable
- Searching characters and substring in a String
- Java String toLowerCase()
- Reverse a string in Java (5 Different Ways)
- Remove Trailing Zeros From String in Java
- Counting number of lines, words, characters and paragraphs in a text file using Java
- Parameters passing
- Returning Multiple values
- Method Overloading
- Different ways of Method Overloading in Java
- Overriding equals method
- Overriding toString() method
- Private and final methods
- Java is Strictly Pass by Value
- Overloading main()
- Valid variants of main()
- Variable Arguments (Varargs) method
- Clone() method
- Remote Method Invocation
- Default Methods
- Method overloading and null error
- Method Overloading with Autoboxing and Widening
- Passing and Returning Objects in Java
- System.exit() method
- Exceptions
- 3 Different ways to print Exception messages in Java
- flow control in try-catch-finally
- Types of Exceptions
- Catching base and derived classes as exceptions
- Checked vs Unchecked Exceptions
- Throw and Throws
- User-defined Custom Exception
- Infinity or Exception?
- Multicatch
- Chained Exceptions
- Null Pointer Exception
- Output of Java program | Set 12(Exception Handling)
- Inheritance in Java
- Multiple Inheritance
- Why Java does’nt support Multiple Inheritance – The Diamond Problem
- Java Object Creation of Inherited Class
- Inheritance and constructors
- Interfaces and Inheritance
- Using final with Inheritance
- Accessing Grandparent’s member
- Override private methods
- More restrictive access to a derived class method in Java
- Parent and Child classes having same data member
- Object Serialization with Inheritance
- Referencing Subclass objects with Subclass vs Superclass reference
- Does overloading work with inheritance
- Output of Java Program | Set 20 (Inheritance)
- Interfaces
- Access specifier for methods in interfaces
- Access specifiers for classes or interfaces
- Abstract Classes
- Difference between Abstract Class and Interface in Java
- Comparator Interface
- Java Interface methods
- Nested Interface
- Nested Classes in Java
- Local Inner Class in Java
- Anonymous Inner Class in Java
- Functional Interfaces
- What is a Marker interface
- Questions on Abstract Classes and Interfaces
- Output of Java program | Set 15 (Inner Classes)
- Multithreading
- Lifecycle and states of a thread
- Main thread
- Methods to prevent thread execution
- inter thread communication
- Java.lang.Thread class
- Start() function in multithreading
- Java Thread Priority
- Joining Threads in Java
- Naming a thread and fetching name of current thread in Java
- Synchronization
- Method and Block Synchronization
- Producer-Consumer solution
- Thread Pools in Java
- Semaphore in Java
- Java.util.concurrent.Semaphore class in Java
- CountDownLatch
- Deadlock in java
- Daemon thread
- Cyclic Barrier in Java
- Callable and Future in Java
- Shutdown Hook in Java
- Runtime Class
- Output of Java program | Set 16 (Threads)
- File class
- Ways of Reading a text file in Java
- file permissions in java
- Moving a file from one directory to another using Java
- Copying file using FileStreams
- Delete a file using Java
- Java program to delete duplicate lines in text file
- Java program to merge two files alternatively into third file
- Java program to List all files in a directory and nested sub-directories | Recursive approach
- Java program to delete certain text from a file
- Check if a File is hidden in Java
- Redirecting System.out.println() output to a file
- Collection Overview
- Iterators
- Using Iterators
- Iterator vs Foreach
- Types of iterator
- List Interface
-
List implemented classes :
- ArrayList(Practice)
- LinkedList class
- Vector class
- Stack Class
- Set Interface(Practice)
-
Set implemented classes :
- HashSet
- LinkedHashSet class(Practice)
- TreeSet class
- EnumSet class
- Map interface
-
Map implemented classes :
- HashMap Class(Practice)
- LinkedHashMap class
- TreeMap
- EnumMap class
- IdentityHashMap class
- SortedSet Interface
- NavigableSet Interface
- Queue Interface
-
Queue implemented classes :
- PriorityQueue
- Deque interface
- SortedMap Interface
- NavigableMap Interface
- Dictionary Class in Java
- Disjoint Set Data Structures (Java Implementation)
- Output of Java Program | Set 13(Collections)
- Set 1 (Read and Write)
- Set 2 (Get and Set Pixels)
- Set 3 (Colored image to greyscale image conversion)
- Set 4 (Colored image to Negative image conversion)
- Set 5 (Colored to Red Green Blue Image Conversion)
- Set 6 (Colored image to Sepia image conversion)
- Set 7 (Creating a random pixel image)
- Set 9 ( Face Detection )
- Set 10 ( Watermarking an image )
- Set 11 (Changing orientation of image)
- Set 12 ( Contrast Enhancement )
- Socket Programming
- Introducing Threads in Socket Programming in Java
- URL class in Java
- Reading from a URL using URLConnection Class
- Inet Address Class
- Java.net.DatagramSocket class in Java
- Java.net.InetSocketAddress class
- Java.net.URI class
- Java.net.Inet4Address class in Java
- Java.net.Inet6Address class in Java
- Java.net.InterfaceAddress class
- Java.net.MulticastSocket class in Java
- Java.net.DatagramPacket class in Java
- Java.net.URLEncoder class in Java
- Java.net.URLDecoder class in Java
- A group chat Application
- Java program to find IP address of your computer
- Multi-threaded chat Application | Set 1 (Server Side Programming)
- Multi-threaded Chat Application | Set 2 (Client Side Programming)
- Commonly Asked Programming Interview Questions – Set 1 Set 2
- 10 Most asked Questions from Java Programmers
- Google Interview Experience | Set 5 (for Java Position)
- Java tricks for competitive programming (for Java 8)
- Fast I/O in Java in Competitive Programming
- Performing Database Operations in Java | SQL CREATE, INSERT, UPDATE, DELETE and SELECT
- Establishing JDBC Connection
- Few Tricky Programs
- How to swap two variables in one line?
- Implementing our Own Hash Table with Separate Chaining
- Quick ways to check for Prime and find next Prime in Java
- How to create Immutable class
- Pair Class in Java
- Date class(With Examples)
- Generating random numbers
- Trigonometric Functions in Java with Examples
- BitSet class in Java – Set 1 Set 2
- Jar files in Java
- Working with JAR and Manifest files In Java
- NaN (Not a Number) in Java
- Generating Password and OTP
- Use char[] array over a string for store passwords
- Find free disk space using Java
- Programs for printing pyramid patterns in Java
- Creating Frames using Swings in Java
- Calling an External Program in Java using Process and Runtime
- Multiples of 3 and 5 without using % operator
- Serial vs Parallel Sort
- How to play an Audio file using Java
- Send email using Java Program
All articles in Java Category
Coding Practice Platform
You can create a new Java topic and discuss it with other geeks using our portal PRACTICE. See recently added problems on Java on PRACTICE.


