Java Programming Language
Java Recent Articles!
Java Output & Multiple Choice Questions
Overview, Basics, OOP concepts, Inheritance Operators, Strings, Input and Output, Arrays , Arrays Class, Important Keywords in Java ,Java vs C++, Methods in Java, Constructors, Exception Handling, Regular Expressions, 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
- JVM Shutdown Hook
- Java Class File
- Differences between JDK, JRE and JVM
- Does JVM create object of Main class?
- How is Java platform independent?
- JDBC Drivers
- 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)
- Enum with Customized Value
- StringBuffer appendCodePoint() Method
- Variables
- Scope of Variables
- Final variables
- Bounded Type Parameters
- 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) as variable name
- Using underscore in Numeric Literals
- Binary search in Java
- Sorting in Java
- 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)
- Overloading or Overriding static methods
- Shadowing of static methods(Also called Method Hiding)
- Static methods vs Instance methods in Java
- Assigning values to static final variables in Java
- Covariant return types
- Object class
- Static class in Java
- Flexible nature of java.lang.Object
- Overriding equals method of Object class
- Overriding toString() method of Object class
- Instance Variable Hiding
- Static blocks in Java
- initializer block in java
- instance initializer block in java(non-static block)
- Static vs Dynamic Binding
- Why Java is not a purely Object-Oriented Language?
- 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)
- 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 Leading Zeros From String in Java
- Trim (Remove leading and trailing spaces) a string
- Counting number of lines, words, characters and paragraphs in a text file using Java
- C++ vs Java
- Static keyword in C++ vs Java
- Exception Handling in C++ vs Java
- Inheritance in C++ vs Java
- Virtual behavior differ in C++ vs Java
- Foreach in C++ and Java
- C/C++ Pointers vs Java References
- Comparison of boolean data type in C++ and Java
- Floating Point Operations & Associativity in C, C++ and Java
- Methods
- Parameters passing
- Returning Multiple values
- Valid variants of main()
- Variable Arguments (Varargs) method
- Method Overloading
- Different ways of Method Overloading in Java
- Method overloading and null error
- Method Overloading with Autoboxing and Widening
- Method Overloading and Ambiguity in Varargs
- Overloading main()
- Overriding equals method
- Overriding toString() method
- Private and final methods
- Java is Strictly Pass by Value
- Clone() method
- Remote Method Invocation
- Default Methods
- Passing and Returning Objects in Java
- System.exit() method
- Exceptions
- OutOfMemoryError Exception
- 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)
- 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
- Inner class 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
- Reentrant Lock
- Cyclic Barrier in Java
- Callable and Future 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
- Creating Sequential Stream from an Iterator in Java
- List Interface
-
List implemented classes :
- ArrayList(Practice)
- LinkedList class
- Vector class
- Stack Class
- Set Interface(Practice)
-
Set implemented classes :
- HashSet
- Internal working of Set/HashSet
- Set in Java
- LinkedHashSet class(Practice)
- TreeSet class
- EnumSet class
- Map interface
-
Map implemented classes :
- HashMap Class(Practice)
- HashMap Methods-Set 1, Set 2
- Working of HashMap
- LinkedHashMap class
- TreeMap
- EnumMap class
- IdentityHashMap class
- HashMap Class(Practice)
-
Queue implemented classes :
- PriorityQueue
- 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)
- Image Processing in Java | Set 8 (Creating mirror image)
- Set 9 ( Face Detection )
- Set 10 ( Watermarking an image )
- Set 11 (Changing orientation of image)
- Set 12 ( Contrast Enhancement )
- Set 13 (Brightness Enhancement)
- Set 14 ( Sharpness Enhancement )
- Set 14 ( Comparison of two images )
- Compressing and Decompressing files in Java
- Socket Programming
- Introducing Threads in Socket Programming in Java
- URL class in Java
- HttpURLConnection Class
- 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
- Java.net.NetworkInterface class
- Java.net.Authenticator class
- Java.net.JarURLConnection class
- UDP DatagramSockets
- Pinging an IP address in Java | Set 2
- A group chat Application
- Simple Calculator via UDP
- Simple Calculator using TCP
- 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
- Program to check palindrome (using library methods)
- Check if two arrays are permutations of each other
- Java program to delete certain text from a file
- Java program to merge two files alternatively into third file
- Longest prefix matching – A Trie based solution in Java
- Print all possible strings of length k that can be formed from a set of n characters
- Check if a given string is a valid number (Integer or Floating Point)
- Java Program to open the command prompt and insert commands
- Print all unique words of a String
- Extracting each word from a String using Regex
- Array Copy in Java
- Mutation Testing
- Singleton Design Pattern
- 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
- How are Java objects stored in memory?
- Are static local variables allowed in Java?
Quick Links:
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


