Using java. please with detailed instructions. put comments in
the codes Thanks
the codes Thanks
(1 Declare a reference variable of type File named myFile. (2) Declare a variable named myMenu suitable for holding references to Menu objects. (3) Suppose a reference variable of type String called myString has already been declared. Create an object of type String and assign it to the reference variable myString.
Answer
//1
File myFile;//declaring myFile reference varaible of type File and
it is not initialized
//2
Menu myMenu[];//declaring myMenu which can hold references to Menu
objects
//3
String myString;//string reference varaible is declared
//now assigning string object to it
myString = new String(“Hello”);