answersLogoWhite

0

false

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

The import statement is always the first noncomment statement in a Java program file?

False. If your class belongs to a package, the package statement should be the first statement. Plus, it's possible that you're not using any resources outside the default java.lang package, and would have no need to import any additional packages.


Which is the first non-comment statement in ajava program file?

It is most likely an "import Java. ...." statement. Which imports packages to be used in the source file. Or a class declaration "public class myClass { ".


Comment statement of BASIC programming language?

In original Standard BASIC comments were indicated by a "REM" (short for "REMARK") statement. So, if "REM" was the first characters on a line, the rest of the line was treated as a comment and ignored by the interpreter or compiler. Later dialects of "Structured" Basic use exclamation points (!) or single quotes (') to indicate the start of a comment Some dialects require the exclamation point or single quote to be the first character on the line, others allow them to appear later in the line after executable code. Most dialects still support the REM notation as well.


Which of the following statement is executed after call moduleB?

the first statement in ModuleB


How do you add a class or an interface to a package in java?

Well, the process differs whether you are using either an IDE or the command line binaries. If you are using an IDE, then it is most likely that your IDE comes with extensive functionality for both managing and creating packages. Look under the "Packages" menu, or, when you are using Eclipse, just right click on the package name in the Package Explorer window and a flood of possibilities will come right up. If you are using the command line binaries, then there are 2 steps to putting your classes in a package. First, you have to put your class or interface in the appropriate folder structure. For example, if you are using the package com.foo.bar.beebop, then you have to put your class in a folder named beebop, which is in a folder named bar, which is in a folder named foo, which is in a folder named com, which is in your class directory. Then, you have to add a package statement, which is only allowed to be at the top of your class file. For example, if you're using the package com.foo.bar.beebop, then put the following statement at the top of your class: package com.foo.bar.beebop; Then skip a line, then come your import statements (if you have any), then stick in another line (if you have inport statements), then your class. Enjoy!

Related Questions

The import statement is always the first noncomment statement in a Java program file?

False. If your class belongs to a package, the package statement should be the first statement. Plus, it's possible that you're not using any resources outside the default java.lang package, and would have no need to import any additional packages.


In logical mathematics there are two examples I present first Roses are flowerssecond Red roses are flowers what do you cll the first and second statement?

the first is "all statement" and the second is " existential statement"


Which is the first non-comment statement in ajava program file?

It is most likely an "import Java. ...." statement. Which imports packages to be used in the source file. Or a class declaration "public class myClass { ".


How do you comment on blogs on blogspotcom?

First you go to blogspot blog,then click on comment page. If the comment page is available,then write comment there.


What are the ways to comment statement in C?

Most of C/C++ will support two types of comments:* // Comment text goes here (aka inline)* /* Comment goes here */ (aka block)But the first comment type is not in ANSI C standard, you will get an error message.In order to compile your program with ASNI C standard using GCC, I suggest this:gcc -Wall -ansi -pedantic -oRemoving "-ansi" would allow usage of the first type comments in C language.


Comment statement of BASIC programming language?

In original Standard BASIC comments were indicated by a "REM" (short for "REMARK") statement. So, if "REM" was the first characters on a line, the rest of the line was treated as a comment and ignored by the interpreter or compiler. Later dialects of "Structured" Basic use exclamation points (!) or single quotes (') to indicate the start of a comment Some dialects require the exclamation point or single quote to be the first character on the line, others allow them to appear later in the line after executable code. Most dialects still support the REM notation as well.


Is a statement kill the blacks protected by first amendment?

No, the statement "kill the blacks" is not protected by the first amendment because it may create a Clear And Present Danger. The issue first appeared in the Schenck v. United States when Charles Shenck protested the draft for WW1. Justice Oliver Holmes, Jr. used the statement to clarify the the exclusivity of the first amendment.


Who was the first person that comment YouTube?

I think it was an account called COLBALTGRUV. I guess the first comment said "...Interesting". But I'm not 100% sure igot it off a comment x3 Hope this helped!


How do you post a comment in android market?

First log in to your Google+ account. Then just make your comment.


How do you post a youtube comment?

It's easy. First, create your youtube account. Then, find the video that you want to comment on. Right click on the video and click on "Add a comment." Type in your comments, and then click on "Post comment."


When was First Statement created?

First Statement was created in 1942.


When did First Statement end?

First Statement ended in 1945.