Skip to content

Java Vogue

Java Tutorials

  • All Tutorials
  • Java
  • Java8
  • Spring Boot
  • Microservices
  • Spring
  • Hibernate
  • Reactjs
  • Interview Question
  • Contact

Category: how to make singleton class

November 25, 2015 javavogue

How to Make Singleton Class In Java

package com.javavogue; public class SingletonDemo { static SingletonDemo obj; private  SingletonDemo(){ } public static SingletonDemo getInstance(){ if(obj!=null){ return  obj; }

Continue reading

Recent Posts

  • TypeScript Tutorial
  • Spring Boot – RESTful Web Service with POST Request in XML Example
  • Spring Boot – Example of RESTful Web Service with XML
  • Spring Boot @ConfigurationProperties Property Validation
  • How to Read value From application.properties in spring boot

Popular Posts

  • How to Read value From application.properties in spring boot
  • ‘Field required a bean of type that could not be found.’ error spring restful API
  • How to Reload Changes Without Restarting the Server – Spring Boot
  • No converter found for return value of type: org.springframework.http.converter.HttpMessageNotWritableException: No converter found
  • Java TreeSet Examples
hi

Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/javaprof/public_html/wp-includes/functions.php on line 4755