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

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

Serialization in Java

Serialization in Java : The process of converting java supported file data to network supported file data is called as “Serialization”.And process of converting network supported file data to Java supported file data is called as “De-serialization”.To achieve serialization your class must implements Serializable interface.If parent class implements Serializable interface then child class doesn’t need … Read more

Servlet in Java

Servlet in Java : Servlet is a server side technology used to work internally on client request and provide the support to the dynamic pages to show response on screen. What are the Common tasks performed by servlet container?Create and maintaining life cycle of an object.Provide JSP support over client request.Multithreading support.Take care of memory … Read more

JSP

JSP stands for Java Sever Page. Java Server Page used to create pages which can be visible o the end user while using the web application. Example: Java Server Page is extension of servlet technology to help developer to create dynamic pages with HTML like syntax.We can create user interface/view in servlet also but the … Read more

Multithreading in Java

Multithreading in Java : Before we go to Multithreading, we must understand what is Process and Thread. Process:Process is nothing but an application running/performing on a device.For Example: If you are using PC or Laptop then Microsoft Word, Web Browser, Music Player, etc applications are called as Process.Each process occupies own memory space.Process are heavy … Read more