package test1;  publi

题目

package test1;  public class Test1 {  static int x = 42;  }  package test2;  public class Test2 extends test1.Test1 {  public static void main(String[] args) { System.out.println(“x = “ + x);  }  }  What is the result?() 

  • A、 x = 0
  • B、 x = 42
  • C、 Compilation fails because of an error in line 2 of class Test2.
  • D、 Compilation fails because of an error in line 3 of class Test1.
  • E、 Compilation fails because of an error in line 4 of class Test2.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第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题:

有两个文件test1和test2,test2有内容,现在执行cat test1>>test2,则test2文件内容全部删除。( )


参考答案:错

第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题:

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

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

正确答案:C

第6题:

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

A.packagePkg;

B.Package P;

C.package P;

D.package "p";


正确答案:C

第7题:

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

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

正确答案:A

第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题:

In a customer’s network, VLAN Trunking Protocol (VTP) is running with a domain named main1. VLANs 1,2,3,4,5,10,20 are active on the network. Suddenly the whole network goes down. No traffic is being passed on VLANs 2,3,4,5,10,20, however traffic passes on VLAN 1 and indicates all switches are operational. Right before the network problem occurred, a switch named TEST1 was added to the network.  What three configuration issues on TEST1 could be causing the network outage?()

  • A、TEST1 is configured as a VTP server with a different domain name.
  • B、TEST1 is not configured to participate in VTP.
  • C、TEST1 is configured as a VTP server with the domain name main1.
  • D、TEST1 has a lower VTP configuration revision than the current VTP revision.
  • E、TEST1 has a higher VTP configuration revision than the current VTP revision.
  • F、TEST1 is configured with only VLAN1.

正确答案:C,E,F

第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

更多相关问题