Java is a class-based, object-based programming language that is designed to create desktop and mobile apps. Along with that, it is also used for big data processing and system embedding. Know the java equations and array better in this test about java language.
Private constructor makes sure only one instance of a class exists at any time
Private constructor makes sure multiple instances of a class exist at any time
Private constructor ensures the instantiation of a class with ease
Private constructor facilitates creation of objects in other classes
Rate this question:
Runtime error
Runtime error
Throws exception
Runs successfully
Rate this question:
Malloc
Alloc
New
New malloc
Rate this question:
It can be called directly
It can only be called using super()
It can be used outside package
It can be instantiated even if the child is in a completely different package
Rate this question:
True
False
Rate this question:
Compilation error
Runtime error
Compilation and runs successfully
Only String return type is allowed
Rate this question:
Int arr[] = int [5] new
Int [] arr = new int[5]
Int arr[] = new int[5]
Int arr[] = new int[5]
Rate this question:
String()
String() & StringBuffer()
StringBuffer()
None of the mentioned
Rate this question:
CHARAT()
Chatat()
CharAt()
ChatAt()
Option 5
Rate this question:
String objects are immutable, they can never be changed
String object usually point to another reference of a string variable
StringBuffer class can be used to store string in a buffer to be used later
None of the mentioned
Rate this question:
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.