string is a class or data type in java?

Answer Posted / neeraj03

'string' keyword is not valid in java, 'String' is the
correct keyword and it's a class.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you answer polymorphism?

813


What is static in oop?

839


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2005


What is byval and byref? What are differences between them?

1966


Can you inherit a private class?

859


Explain the advantages of inheritance.

896


Why multiple inheritance is not possible?

819


Can an interface inherit a class?

804


What is overriding vs overloading?

811


What is for loop and its syntax?

821


What is destructor oops?

866


Is data hiding and abstraction same?

791


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2296


What is difference between abstraction and encapsulation?

829


What is encapsulation in oop?

805