What is the singleton class in java?

Answer Posted / leelanarasimhareddy

A singleton is a class for which only one instance can exist
within a program. In other words, only one, single object of
that particular class can be created in a program.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is gui in java with examples?

684


What do you understand by numeric promotion?

712


Can we write lambda without functional interface?

660


What are the authentication modes in asp.net? : java security

669


what is reflection api? How are they implemented?

736


Write a program for the problem: the array of inetegers indicating the marks of the students is given, U have to calculate the percentile of the students aaccording to this rule: the percentile of a student is the %of no of student having marks less then him. For eg: suppose Student Marks A 12 B 60 C 80 D 71 E 30 F 45 percentile of C = 5/5 *100 = 100 (out of 5 students 5 are having marks less then him) percentile of B = 3/5*100 = 60% (out of 5, 3 have markses less then him) percentile of A = 0/5*100 = 0%.

1869


Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.

1701


Why is class forname used in java?

694


Which instutute is offering course for rhino jain slee

2050


What is cdi bean in java?

691


What is aop in java?

668


Why java?

705


Which version of my browser should I use? : java security

687


What is a yaml file in java?

662


What are java’s rules regarding tabs, spaces and newline characters?

1210