What is immutable String Object? Immutable String Object We have heard lot of times that String objects are immutable, but what really immutability means? When we create String object and assign some value to it, it is frozen, we cannot change that value again. So we call it as immutable objects as its value never […]Continue Reading →
10 simple things to check while doing code review : Code review is also one of the important task of the coding cycle, code review is very beneficial in many senses such as it can avoid any regression, it helps in maintaining quality of code, helps to avoid duplicate code and many more. Now lets […]Continue Reading →
How ClassLoader works in java? To understand how ClassLoader works in java, first we need to understand What is the ClassLoader in Java? ClassLoader is an abstract class and extends Object class, A ClassLoader object is an object which is responsible for loading classes. The class ClassLoader is an abstract class. Every Class object contains […]Continue Reading →
Creating a JTable with custom cell renderer example Often you need a JTable with some modified look and feel for JTable Cell , we need to use custom cell renderer for JTable. Lets see how we can use JTable cell renderer to customize the look and feel of the JTable cell. As shown in example […]Continue Reading →
What is the difference between AWT and Swing in java? This is one of the favorite java swing interview question asked for UI developer. Before looking at difference between AWT and Swing lets see what is AWT and what is Swing AWT (Abstract Window Toolkit) AWT is original Java GUI toolkit and simple where there […]Continue Reading →
What is the difference between ArrayList and vector in java? This is one of the favorite interview question and very important to know the difference between the two because we need to use lot of those collection while writing the code. So it is essential to understand the differences between ArrayList and Vector for its […]Continue Reading →
I would like to share some key points about synchronization in java which will be beneficial while coding and for interview also. Key points about synchronization in java 1. Each object has only one lock. 2. Only methods or blocks can be synchronized , you cannot synchronize the variables or classes. You cannot apply synchronized […]Continue Reading →
Why wait, notify and notifyAll is defined in Object Class? Why wait, notify and notifyAll are not defined in Thread Class? Above questions are very popular in interview. Interviewer will often ask this question to test the knowledge of wait(), notify() and notifyAll() methods in Java multithreading. This is very important question because it also […]Continue Reading →
You might come across the questions like What is a monitor referred to the concurrent programming in Java? or the term which is often used “every object has associated a monitor”, what does it mean? What is monitor in java? In concurrent programming, a monitor is an object or module intended to be used safely […]Continue Reading →
You might be wondering with the questions like How to override windowsClosing event in JFrame or do something before window closes after user presses x button or how to control the action of closing the JFrame. Lets see the the solution to the problem you might be facing. So in order to add the our […]Continue Reading →
You may want to read it!
- How to print message , stacktrace of Exception in java?
- Simple JTable example using AbstractTableModel
- What is the difference between AWT and Swing in java
- Enum in java with java enum examples
- Tutorial Socket Programming :Example Creating the Socket connection in java
- What are port groups in VMware ESX?
- How to you align/justify JTable column header text?
- How make JComboBox drop-down width as wide as needed?
- 5 alternatives to meebo messenger for instant messaging
- How to create splitpanes in java using JSplitPane?