Question: 1. suppose str is a string value. The statement str=new string (Programming); is similar to which of the following ? a, new string = Programming;

1. suppose str is a string value. The statement

str=new string ("Programming");

is similar to which of the following ?

a, new string = "Programming";

b, string new = "Programming";

c, str="Programming";

d, str new "Programming";

2. To convert a string to an integer, you use the parseInt() method of the.... class

a, stringbuilder

b, string

c, integer

d, convert

3, All of the following are method of the file class except

a, exist()

b, delete()

c, getDirectory()

d, getName()

4. The path class getFileName() method returns........

a, the string name of the file or directory

b, an path object

c, a file object

d, an absolute path

5. A(n).....path starts from the root directory

a, absolute

b, relative

c, parallel

d, straight.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!