Types Of Programming in Java

Types Of Programming in Java – A Complete Guide for Students & Interview Preparation Types Of Programming in Java with examples: Java has remained one of the most popular programming languages for decades. Its popularity stems from being platform-independent, secure, and versatile, making it the first choice for building enterprise systems, Android apps, financial applications, and more. … Read more

Singleton Class in Java

What is Singleton class in java? Singleton class is a class of which we can create only one object. Java program to create Singleton class / Implementing a Singleton class : public class SingltonClassTest { private static SingltonClassTest t = new SingltonClassTest(); private SingltonClassTest() { //don’t allow to create object } public static SingltonClassTest getSingltonClassTest() … Read more

Immutable class in java

What is Immutable class in java? Immutable class in java is that class of which once we create an object then we are not allowed to change the content or state of that object. How to create Immutable class in java?  Make your class as final (can’t extend further)  Make data member as … Read more

Project Exception

Project Exception : How you handled exceptions in your project? As part of my project we are handling the exception, generally in my project we have handle user defined exception, based on the business requirement we have categorized user defined exception into different types of exception like- A) Business Exception B) System Exception C) Service … Read more

Java Comments

Java Comments : In any java program, we can use comments which can be more helpful to programmer to understand that what exactly is that method or line of code is all about and it will make more easier to next coder to understand meaning of any such line of code. The java comments are … Read more

Constructor and it’s type in Java

Constructor and it’s type in Java : Constructor is nothing but a block (Similar to method) having same name as that of class name.Constructor does not have any return type, even not void.The only modifiers applicable for constructor is Public, Protected, Default and Private.It executes automatically when we create an object. Use of Constructor:-To initialize … Read more

Variable in Java

Variable in java is nothing but the container that stores the value of data during execution of the program. For example, if you write int abc=100; then here  abc is a variable which is of type int and holding value as 100. Declare variable in java: data_type variable_name = variable_value; Here variable_value is optional, you … Read more

Introduction to Java

Introduction to Java : JAVA is a programming language which is developed by Sun Microsystems ( James Gosling and Patrick Naughton ) as a computing platform and later it is owned by Oracle corporation.JAVA is a simple programming language as it is easy to writing, compiling and debugging the code. It reduces efforts, time and … Read more