Is 'sizeof' a keyword?

Answer Posted / interviewall

The Keywords used in Java for getting the size of a string
or an array is either String.length() or size(), which
returns a Integer.
sizeOf() is not a keyword!

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you initialize an Applet?

623


What is the purpose of file class?

550


Explain some best practices you would apply while using collection in java?

572


What is memory leak and how does java handle it?

525


Write a program in java to create a doubly linked list containing n nodes.

557






Explain the importance of thread scheduler in java?

600


What does java ide mean?

643


What is meant by method overriding?

549


Explain inner classes ?

655


Can a class have 2 constructors?

503


What is meant by 'Class access modifiers'?

556


What are runtime exceptions?

618


Why are lists ordered in java?

550


What are the disadvantages of object oriented programming?

603


What is the list interface?

612