INTRODUCTION TO NET
APPLICATION DEVELOPMENT
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Java source code
|
|
XML
|
|
manifest
|
|
None of these
|
Detailed explanation-1: -Using Plain Java – getResourceAsStream() To read a file from the ‘src/main/resources’ we need to provide a file path relative to this directly. When we invoke getResourceAsStream() in a unit test, it reads the file from ‘src/test/resources’ directory. We can now use the InputStream instance to read the file’s contents.
Detailed explanation-2: -The source folders contain the Java source files and unit test source code. The location path of the source folders must follow the Maven convention to be compatible with the Application Platform. The required location path structure for the source folders is src/main/java.
Detailed explanation-3: -The src and dist folders are essential components of any software development project. They are used to store the source code and the compiled code, respectively. The src folder is where developers write their code, while the dist folder is where the compiled code is stored.
Detailed explanation-4: -Go to Windows->Preferences->Java->Installed JREs. Select Browse and navigate to the C:Files1. 6.0 21 directory. Eclipse will automatically find the source and associate it with the JDK classes.