网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

String类的IndexOf()方法返回的类型是()

  • A、Int16
  • B、Int32
  • C、int
  • D、long

参考答案

更多 “String类的IndexOf()方法返回的类型是()A、Int16B、Int32C、intD、long” 相关考题
考题 若变量a是String类型的变量,那么表达式(a+A) 的类型是______。A) charB) StringC) intD) long

考题 若变量a是String类型的数据,那么表达式(a+a)的类型是( )。A.charB.StringC.intD.long

考题 下列属于Java中整型类型的是()。 A.byteB.shortC.intD.long

考题 类型修饰符unsigned修饰( )是错误的。A.charB.intC.long intD.float

考题 阅读以下说明和Java 码,将应填入(n)处的字名写在的对应栏内。[说明] 编写一个学生类Student,要求:(1) 学生类Student 属性有:id: long 型,代表学号name: String类对象,代表姓名age: int 型,代表年龄sex: boolen 型,代表性别(其中:true 表示男,false 表示女)phone: String 类对象,代表联系电话(2) 学生类Student 的方法有:Student (long i,String n,int a,boolean s,String p):有参构造函数,形参表中的参数分别初始化学号、姓名、年龄、性别和联系电话。int getAge ():获取年龄作为方法的返回值。boolean getSex ():获取性别作为方法的返回值。String getPhone ():获取联系电话作为方法的返回值。public String to String ():以姓名:性别:学号:联系电话的形式作为方法的返import java. applet. Applet;import java. awt.* ;public class Student extends Applet {long id;String name, phone;int age;boolean sex;Student(long i, String n, int a, boolean s, String p){id=i;name = n;age = a;sex= s;phone = p;{public void paint( Graphics g){Student x= new Student (5000," xiaoliu" , 89, true, " 8989898" );(1);(2)g. drawstring( x. getPhone( ), 140,140);}int getAge( ){ return age; }boolean getsex ( ){ return sex; }String getPhone( ){ return phone; }String ToString( ){(3)}}

考题 若变量a是String类型的数据,那么表达式(a+a)的类型是( )。A.charB.StringC.intD.10ng

考题 下面( )不是String类提供的合法的方法。A、equals(String)B、trim()C、append()D、indexOf()

考题 String类的IndexOf()方法返回的类型是() A.Int16B.Int32C.intD.long

考题 String对象的哪个方法可以寻找子字符串并返回该子字符串?()A、match()B、indexOf()C、search()D、concat()

考题 使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。A、字符串"helloworld"中不包含G字符,indexOf返回0B、字符串"helloworld"中不包含G字符,indexOf返回nullC、字符串"helloworld"中不包含G字符,indexOf返回-1D、字符串"helloworld"中不包含G字符,indexOf返回1

考题 以下对应于unsigned long 的数据类型为()。A、WORDB、DWORDC、INTD、BYTE

考题 下列不是 String 类的方法的是()A、charAt(int index)B、indexOf(String s)C、beginWith(String s)D、endsWith(String s)

考题 有以下方法的定义,ReturnTypemethod(bytex,floaty){return(short)x/y*2;}请选择该方法的返回类型()。A、byteB、shortC、intD、float

考题 Java程序运行入口的main方法的返回值类型是什么()A、booleanB、staticC、intD、void

考题 File类的方法中,用于列举某目录下的子目录及文件的方法是()A、long length()B、long lastModified()C、String [] list()D、String getName()

考题 String类中用于返回字符串字符个数的方法是()

考题 对于不返回任何值的方法,其返回类型为()。A、charB、floatC、intD、void

考题 下列选项中,不属于值类型的是()A、structB、Int32C、IntD、string

考题 下选项中不属于C语言的类型是()。A、signed short intB、unsigned long intC、unsigned intD、long short

考题 在JavaScript中,下列关于String对象的charAt()和indexOf()方法理解正确的是()。A、charAt()方法是获取位于指定索引位置的字符B、indexOf()方法是查找字符或字符串的位置,返回字符串出现的所有位置C、charAt()方法的参数可以为一个或两个D、indexOf()方法的参数为指定的索引值

考题 System类中的currentTimeMillis()方法返回一个long类型的值

考题 Java的整型数据类型中,需要内存空间最少的是()。A、byteB、shortC、intD、long

考题 多选题String类的IndexOf()方法返回的类型是()AInt16BInt32CintDlong

考题 判断题System类中的currentTimeMillis()方法返回一个long类型的值A 对B 错

考题 单选题使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。A 字符串helloworld中不包含G字符,indexOf返回0B 字符串helloworld中不包含G字符,indexOf返回nullC 字符串helloworld中不包含G字符,indexOf返回-1D 字符串helloworld中不包含G字符,indexOf返回1

考题 ( 难度:中等)java程序运行入口的main方法的返回类型是()。A.staticB.voidC.intD.boolean

考题 ( 难度:中等)Java语言中,String类的IndexOf()方法返回的类型是?A.intB.Int16C.Int32D.long