Category Archives: Java

Abstraction in Java with Example – Easy Detailed Guide

Abstraction is an important concept of OOPs. It mainly focuses on the security of a program or application that you are developing. What is Abstraction? We use this term in general day to day life as well. Abstraction means hiding irrelevant things and showing them only the things that matters the most. In programming, we… Read More »

Java Scanner Class – How to import it and use it in Java

Scanner is a class which is present in java.util package. It is used for receiving input from user. It takes the input from user into tokens. We convert those tokens into required types using nextXYZ() methods. (Here XYZ can be int, long etc). How to take input from user in Java using Scanner class? Here… Read More »

Difference between Swing and AWT in Java – AWT vs Swing

Major differences between Swing and AWT AWT Swing AWT stands for Abstract Window Toolkit AWT is the foundation of Swing and it implements GUI components which was built on AWT. AWT GUI components are heavy weight. Swing components are light weight. AWT consumes comparatively high System Resources than Swing. Swing consumes less System Resources. AWT produces… Read More »