package com.company.applic

题目

package com.company.application;  public class MainClass {  public static void main(String[] args) { }  }  And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to “.“ (current directory).  Which two java commands entered at the command line will run MainClass?()

  • A、 java MainClass if run from the /apps directory
  • B、 java com.company.application.MainClass if run from the /apps directory
  • C、 java -classpath /apps com.company.application.MainClass if run from any directory
  • D、 java -classpath . MainClass if run from the /apps/com/company/application directory
  • E、 java -classpath /apps/com/company/application:. MainClass if run from the /apps directory
  • F、 java com.company.application.MainClass if run from the /apps/com/company/application directory
参考答案和解析
正确答案:B,C
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are the administrator of a SQL Server 2000 computer. Each evening after business hours, you perform. database maintenance tasks. You create a Data Transformation Services package to populate the data warehouse. MAPI is not installed on the server.

You want to schedule the DTS package to run each night. You want to attend to other duties while the DTS package is executing. You also want to be notified if the DTS package fails.

What should you do?

A.Select the DTS packages log package execution to SQL server check box. Create a SQL server event alert to notify you if the package fails.

B.Select the DTS packages write completion status to event log check box. Create a SQL server event alert to notify you if the package fails.

C.Configure the DTS package to include an on failure precedence constraint and a send mail task. Configure the send mail task to notify you if the package fails.

D.Configure the DTS package to include an on failure precedence constraint and a send mail task. Configure the execute process task to execute a not send command that will notify you if the package fails.


正确答案:B
解析:Explanation:Whenjobsarecompleted(successfullyornot),thesubsystemreturnsaresultstatus(withoptionalmessages)toSQLServerAgent.SQLServerAgentthenrecordsthecompletionstatusinboththeoperatingsystem'sapplicationlogandthejobhistorytableinSQLServerandoptionallysendsane-mailreportoranSQLServereventalertofthejobstatustothedesignatedoperator.IncorrectAnswers:A:Weareinterestedtowhenthepackagehascompleted.Thecompletionstatus,notthelogpackageexecution,shouldbeusedtotrapthecompletionofapackage.TheexecutionstatusconcernsLastruntime,Lastrunstatus,Lastrunmessage,etc.C,D:TheMessagingApplicationProgrammingInterface(MAPI)isn'tinstalled.MAPIisneededforSQLServertosende-mail.Noe-mailcanbesendbySQLServerinthisscenario.

第2题:

声明一个名字为P的包,下面的语句正确的是

A.packagePkg;

B.Package P;

C.package P;

D.package "p";


正确答案:C

第3题:

在Java语言中,在包Package1中包含包Package2,类Class_A直接隶属于包Package1,类Class_B直接隶属于包Package2。在类Class_C要应用Class_A的方法A和Class_B的方法,你需要()语句。

A.importPackage1.*;

B.importPackage1.Package2.*;

C.importPackage2.*;

D.importPackage2.Package1.*;


参考答案:A, B

第4题:

以下哪一项是存放盒子化产品脚本包的路径()。

  • A、/opt/package/scripts
  • B、/opt/package/software/CTI
  • C、/opt/package/software
  • D、/opt/package/CTI

正确答案:A

第5题:

一个程序中,package、import、和class的排放次序是()

  • A、package、import、class
  • B、import、package、class
  • C、三者任意
  • D、class在最后,import、package排放次序任意

正确答案:A

第6题:

You are the administrator of a network that consists of Windows 2000 Server Computers and Windows 2000 Professional computers.

You want to configure the deployment of the most recent Windows 2000 Service pack so that users of the Windows 2000 Professional Computers receive the service pack automatically when they log on to the domain.

What should you do?

A.Create a Microsoft Windows installer package for the service pack. Configure RIS to use the package.

B.Create a Microsoft Windows installer package for the service pack. Configure the package in a group policy.

C.Create a Microsoft Windows installer package for the service pack. Configure the package in the local computer policy.

D.Place the service pack in a distributed file system (Dfs).


正确答案:B
解析:Explanation:TodeploythemostrecentWindows2000ServicepacksothatusersoftheWindows2000Professionalcomputersreceivetheservicepackautomaticallywhentheylogontothedomain,wemustcreateanduseaWindowsInstallerpackageandapplyitthroughaGroupPolicy.Incorrectanswers:A:Windowsinstallerpackagesshouldbedeployedbygrouppolicies.RIS,RemoteInstallationServices,isusedtoremotelyinstallWindows2000Professional.C:Ifwedeploytheinstallerpackagewithalocalpolicywewouldhavetomanuallyconfigurethepolicyonallclients.ThiscouldrequireconsiderableadministrativeeffortD:DFSisusedtoorganizenetworkfolders,nottodeployupdatesofapplications.

第7题:

A package contains nitric acid solution and is radioactive.The radiation level at the package surface is 36 millirems per hour.How should this package be labeled ________.

A.Radioactive II and oxidizer

B.Radioactive II and poison

C.Radioactive I and corrosive

D.Fissile class I


正确答案:C

第8题:

You are the administrator of a SQL Server 2000 computer. The server contains a Data Transformation Services (DTS) package that queries multiple databases and writes the results to a text file. You run this package by using a Microsoft Windows batch file. The batch file uses the dtsrun utility to execute the DTS package.

You want to ensure that connection properties, such as login names and passwords, cannot be read or modified by users. Which two actions should you take? (Each correct answer represents part of the solution. Choose two.)

A.Save the DTS package so that it has an owner password.

B.Save the DTS package so that it has a user password.

C.Encrypt the DTS package details in the command line of the dtsrun utility.

D.Store the DTS package in the Meta. Data Services repository.

E.Store the DTS package as a Microsoft Visual Basic file.


正确答案:AC
解析:Explanation: In this scenario we will use a windows batch file with the owner password for maximum security.

A: When running the Dtsrun utility on a package you must either specify a user password or a package password. Specify a password for the package to protect sensitive user name and server password information in the package from unauthorized users with owner password. If the package has an owner password, the data is encrypted with the standard encryption API. This protects protect sensitive user name and server password information in the package from unauthorized user.
.
C: You can encrypt the command prompt options to be executed by the DTS Run utility, allowing you to create an encrypted dtsrun command for later use. This will ensure that login names, password and other command line options cannot be read or modified by users.

Note: When a package is saved to SQL Server or as a structured storage file, DTS package passwords can be assigned to the package. These passwords are used in addition to the Windows Authentication or SQL Server Authentication passwords to connect to an instance of SQL Server.

There are two types of DTS package passwords that can be set: an owner password and a user password. If an owner password is set, the package user needs the password to edit or run the package and if a user password is set, the package users with access to the user password can run the package.

Incorrect Answers:
B: There is no need to create a user password. The package will be run with an owner password. The owner password will be protected since the command options are encrypted.

D: The Meta. Data Services repository is the storage container for the meta. data used by Analysis Services. Meta. data is stored in tables in a relational database and is used to define the parameters and properties of Analysis server objects. DTS package information can be saved to Meta. Data Services. This saves meta. data information about the databases referenced in the package, which can be viewed though the DTS Browser.

E: When a DTS package is saved as a Visual Basic file, these files can be used as templates, or starting points, for user-implemented Visual Basic packages. The generated code sets all properties of all objects referenced in the package to the initial values they will have when package execution begins. This includes those that are set to their default values.

第9题:

以下哪一项是存放盒子化产品软件包的路径()。

  • A、/opt/package/scripts
  • B、/opt/package/software/CTI
  • C、/opt/package/software
  • D、/opt/package/CTI

正确答案:C

第10题:

Which statement is correct about the validate option when upgrading JUNOS software?()

  • A、It will check the MD5 checksum of the install package.
  • B、It will check if the device meets the memory requirements for the install package.
  • C、It will check the compatibility of the configuration with the install package.
  • D、It will check if the device meets the storage requirement for the install package.

正确答案:C

更多相关问题