What is StringTokenizer or Scanner and examples of similar classes (if you used it)

1 Answer

Answer :

A: StringTokenizer or Scanner is a class which splits up any given string into tokens separated by delimiters.

Related questions

Description : Why did you write java.util package? (only if you use classes like Scanner or StringTokenizer)

Last Answer : A: To include the functions of the Scanner or StringTokenizer class from the java.util package.

Description : Name some other concepts related to Scanner/StringTokenizer

Last Answer : A: Scanner class, StringTokenizer class, split() function.

Description : Name some function of StringTokenizer class.

Last Answer : A: nextToken(), countToken(), hasMoreTokens() etc.

Description : Name some function of Scanner class.

Last Answer : A: next(), nextInt(), hasNextInt() etc.

Description : State any two IOException classes.

Last Answer : A: EOFException and FileNotFoundException.

Description : State true or false. i) Jpanel is a class included in awt package. ii) Anonymous classes are mostly used for event handling. iii) Names of anonymous classes must be unique iv) JOptionPane is an inner class A) i-false ... ) i-false, ii-true, iii-false, iv-false D) i-true, ii-false, iii-false, iv-true

Last Answer : C) i-false, ii-true, iii-false, iv-false

Description : The concept of multiple inheritance is implemented in Java by A) extending two or more classes B) extending one class and implementing one or more interfaces C) implementing two or more interfaces D) both B and C

Last Answer : D) both B and C

Description : A package is a collection of A) classes B) interfaces C) editing tools D) classes and interfaces

Last Answer : D) classes and interfaces

Description : The .................. and .................... classes are abstract classes that support reading and writing of byte streams. A) reader, writer B) inputstream, outputstream C) objectinputstream, objectoutputstream D) none

Last Answer : B) inputstream, outputstream

Description : The concept of multiple inheritance is implemented in Java by A) extending two or more classes B) extending one class and implementing one or more interfaces C) implementing two or more interfaces D) both B and C

Last Answer : D) both B and C

Description : A package is a collection of A) classes B) interfaces C) editing tools D) classes and interfaces

Last Answer : D) classes and interfaces

Description : The .................. and .................... classes are abstract classes that support reading and writing of byte streams. A) reader, writer B) inputstream, outputstream C) objectinputstream, objectoutputstream D) none

Last Answer : B) inputstream, outputstream

Description : State true or false. i) init() is called after start() in applet ii) applets are used for networking iii) inheritance is a part of Java Foundation Classes iv) final does not prevent inheritance A) i-true, ii- ... C) i-true, ii-true, iii-true, iv-true D) i-true, ii-false, iii-false, iv-false

Last Answer : B) i-false, ii-false, iii-false, iv-false

Description : In JDBC ........................ imports all Java classes concerned with database connectivity. A) javax.sql.* B) java.mysql.* C) java.sql.* D) com.*

Last Answer : C) java.sql.*

Description : Inner classes are A) anonymous classes B) nested classes C) sub classe

Last Answer : B) nested classes

Description : All java classes are derived from A) java.lang.Class B) java.util.Name C) java.lang.Object D) java.awt.Window

Last Answer : D) java.awt.Window

Description : …………. Is the process of creating new classes, called derived classes from existing classes called base class. A) Inheritance B) Encapsulation C) Polymorphism D) Overloading

Last Answer : A) Inheritance

Description : A ………………. Is a class whose instances themselves are classes. A) Subclass B) Abstract Class C) Meta Class D) Object Class

Last Answer : C) Meta Class

Description : The friend functions are used in situations where A) We want to exchange data between classes B) We want to have access to unrelated classes C) Dynamic binding is required D) We want to create versatile overloaded operators.

Last Answer : A) We want to exchange data between classes

Description : …………. Refer to the names of variables, functions, arrays, classes etc. created by the programmer. A) Keywords B) Identifiers C) Constraints D) Strings

Last Answer : B) Identifiers

Description : C++ has the name ………………….. before it was changed to C++. A) Improved C B) Integrated C C) C with classes D) C with Simula

Last Answer : C) C with classes

Description : Equivalence partitioning is a .................. method that divides the input domain of a program into classes of data from which test cases can be derived. (A) White-box testing (B) Black-box testing (C) Orthogonal array testing (D) Stress testing

Last Answer : (B) Black-box testing

Description : .................. allows to create classes which are derived from other classes, so that they automatically include some of its "parent's" members, plus its own members. (A) Overloading (B) Inheritance (C) Polymorphism (D) Encapsulation 

Last Answer : (B) Inheritance

Description : All the classes necessary for windows programming are available in the module : (A) win.txt (B) win.main (C) win.std (D) MFC

Last Answer : (A) win.txt

Description : Consider the two class classification task that consists of the following points: Class C1: [1 1.5] [1 -1.5] Class C2: [-2 2.5] [-2 -2.5] The decision boundary between the two classes using single perceptron is given by: (A) x1+x2+1.5=0 (B) x1+x2-1.5=0 (C) x1+1.5=0 (D) x1-1.5=0

Last Answer : (C) x1+1.5=0 

Description : Let L be the language generated by regular expression 0*10* and accepted by the deterministic finite automata M. Consider the relation RM defined by M. As all states are reachable from the start state, RM has ................ equivalence classes. (A) 2 (B) 4 (C) 5 (D) 6

Last Answer : (D) 6

Description : Which of the following statements is correct? (A) Aggregation is a strong type of association between two classes with full ownership. (B) Aggregation is a strong type of association between two ... ownership. (D) Aggregation is a weak type of association between two classes with full ownership.

Last Answer : (C) Aggregation is a weak type of association between two classes with partial ownership.

Description : It is possible to define a class within a class termed as nested class. There are ............ types of nested classes. (A) 2 (B) 3 (C) 4 (D) 5

Last Answer : Answer: A, C

Description : How many different equivalence relations with exactly three different equivalence classes are there on a set with five elements? (A) 10 (B) 15 (C) 25 (D) 30

Last Answer : (C) 25

Description : Which of the following statement(s) is/are TRUE with regard to software testing? I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance. II. Equivalence partitioning is a ... (1) only I (2) only II (3) both I and II (4) neither I nor II

Last Answer : (1) only I 

Description : Which of the following statement(s) with regard to an abstract class in JAVA is/are TRUE? I. An abstract class is one that is not used to create objects. II. An abstract class is designed only to act as a base class ... by other classes. (1) Only l (2) Only II (3) Neither I nor II (4) Both l and II

Last Answer : Both l and II

Description : Which of the following storage classes have global visibility in C/C++? (1) Auto (2) Extern (3) Static (4) Register

Last Answer : Answer: 2

Description : Javascript and Java has similar name because ........... is/are true. (a) Javascripts syntax is loosely based on Java's syntax (b) Javascript is stripped down version of Java (c) Java and Javascript are originated from Island of Java ... only (B) (a), (b) and (c) (C) (a) and (b) (D) (a) and (c)

Last Answer : Answer: A

Description : The ............... addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction. (A) Base indexed (B) Base indexed plus displacement (C) Indexed (D) Displacement

Last Answer : (D) Displacement

Description : Can two functions have the same name? Give examples.

Last Answer : A: Yes. In function overloading and function overriding.

Description : Give some examples of packages.

Last Answer : A: java.util, java.lang etc.

Description : Which of the following provides the best description of an entity type? (A) A specific concrete object with a defined set of processes (e.g. Jatin with diabetes) (B) A value given to a ... template for a group of things with the same set of characteristics that may exist in the real world

Last Answer : Answer: D

Description : Antibacterial agents can be classified with regard to their structure, mechanism of action, and activity pattern against various types of bacterial pathogens. Which of the following ... are both bacteriostatic d. Sulfonamides and trimethoprim act synergistically to inhibit purine synthesis

Last Answer : Answer: a, b, d Penicillins, cephalosporins, and monobactams possess a b-lactam ring of some type and act to bind bacterial division plate proteins, thus inhibiting cell wall ... act in different mechanisms to inhibit protein synthesis, therefore two agents in combination act synergistically

Description : What are the main classes into which the phylum is divided? What are some examples of each and in which form (polyp or medusae) are they found?

Last Answer : Coelenterates are divided into three main classes: hydrozoans, scyphozoans and anthozoans. In hydrozoans the polypoid form predominates and examples are hydras, by-the-wind-sailors and Obelia. ... corals and sea anemones are notable in this group. Image Diversity: hydrozoans scyphozoans anthozoans

Description : The products such as "VHS tapes" are examples of A. product classes B. product forms C. branding D. product perception

Last Answer : B. product forms

Description : Can you recommend an all-in one color printer/scanner for home office use?

Last Answer : I have a Canon Pixma printer/scanner that prints excellent photos in addition to regular color printing. And it has a built in scanner. I have had it for about ten years, so the drivers are easily updated. ... 10. And fully loaded with all the bells and whistles you can get them for $150 - $175 US.

Description : Do you own and use a business card scanner and software?

Last Answer : Why wouldn’t a printer / scanner work? Also if you build a data base using Access or Excel (I prefer Excel) in which to store this information you can search it that way. What exactly is it you need to do? I might be able to help.

Description : Can one use a body scanner to fit yourself with new clothes?

Last Answer : Why not just try on the clothes or go to a tailor? Really, sometimes the wheel doesn’t need to be overthought.

Description : Computer question - re: Comodo and Cloud Scanner?

Last Answer : Windows has a built in firewall. Unless you are running servers that is probably good enough. I’m not really sure why you are using 3rd-party software that is constantly trying to sell you shit.

Description : I have a scanner, Mac and old photos I want to scan. What's the best way to proceed?

Last Answer : The advice I got was “maximize your settings.” That is, maximize your resolution and size instead of accepting the scanner software’s default settings. You’ll probably have to play with the settings to get the results you want, but then you can scan away.

Description : Why is a laser scanner not able to read a bar code on my iPhone?

Last Answer : Laser scanners can’t read the screen as the light reflects off the glass.

Description : What type of scanner is available that will scan negatives (both color & B&W) and which will work with an older operating system like Windows 2000?

Last Answer : answer:Very few. You might find a used one, but even that is a long shot. Anything that is new is built for Vista and higher, and nothing will have drivers for Windows 2000. W2000 was released in 1999, and that’s 13 years ago, which is ancient history.

Description : I have an all-in-one printer/fax/scanner, can I hook up my cell phone to use the fax?

Last Answer : answer:There are about 30 technical reasons you can't. Most of these have to do with the way that faxes are encoded and decoded electronically (an analog function) while your cell phone is essentially a ... PDFs. And then emails them to you. But just plain vanilla, use the cell phone? No way.

Description : Care to recommend a good portable scanner?

Last Answer : I have a HP Photosmart D110. It makes excellent pics, prints well, but it may be a little heavier than you want.