In Java which of the following is not a common characteristic in the Singleton pattern :
a)Private constructor
b)static instance variable
c)public static getInstance()
d)public constructor
#javascript#Java#javamcq
What will be the output of the following Java code?
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
a) 32
b) 33
c) 24
d) 25
#Java#JavaMcq#Mcq