vozForums
Báo lỗi diễn đàn và theo dõi tình hình khắc phục.

Go Back   vozForums > Máy tính để bàn > Phần mềm > Phát triển Phần mềm


Reply
 
Thread Tools
  #1  
Old 10-06-2010, 23:45
lixboi's Avatar
lixboi lixboi is offline
Senior Member
 
Join Date: 01-2008
Posts: 332
Nhờ mấy bác chém hộ vài câu lý thuyết Java >"<

Tình hình đang ôn lý thuyết Java , nhờ các bác giúp e tìm mấy cái đáp án đúng với

Quote:
1 . The ability of an object to store data beyond the lifetime of the object is called encapsulation
A) TRUE ---
B) FALSE ---

2. The constructor FileOutputStream(String filename, boolean flag) creates an OutputStream that can be used to write bytes to a file
A) TRUE ---
B) FALSE ---

3 . In JDK 1.5, character streams support Unicode characters and can be internationalized
A) TRUE ---
B) FALSE ---

4 . Which of the following would sort all the elements in a Properties set, including the defaults?
A) Create a new TreeMap, passing in the source Properties object to its constructor. ---
B) Create a new TreeMap and map each key reported by propertyNames and its associated value to it. ---
C) Call the toArray method of Properties and then call Arrays.sort on the result. ---
D) Call the sort method of Collections to sort the whole Map (Properties object). ---

D) Call the sort method of Collections to sort the whole Map (Properties object). ---
5 . Your programming problem is to create a list of unique values of part ID numbers in a large collection of data representing orders. Furthermore, it would be nice if the list was in sorted order.

You have decided to use one of the collection classes in the java.util package to construct this list. Which of the following interfaces should the ideal class implement?
A) Map ---
B) SortedMap ---
C) List ---
D) Set ---
E) SortedSet ---

6 . A collection is a container that helps to group multiple elements of Object class into a single unit
A) TRUE ---
B) FALSE ---

7 . A collection is a container that helps to group multiple elements of Object class into a single unit
A) TRUE ---
B) FALSE ---

8 . Choose two CORRECT statements about Thread
A) A thread is the smallest unit of executable code in an application that performs a particular task ---
B) A thread has no definite starting point, execution steps and terminating point ---
C) A process contains one or more threads inside it ---
D) Threads can be used for playing sound and displaying images simultaneously ---

9 . Multithreading helps ________ (choose 2)
A) double speed of the systems ---
B) increase performance of single-processor systems ---
C) programs have more fault tolerance capability ---
D) reduce the CPU idle time ---

10 . This declaration is right for a generic method?
public static int count(T[] list, T item)
A) TRUE ---
B) FALSE ---

11 . Generics bounded wildcards are useful in situations where only partial knowledge about the type argument of a parameterized type is required
A) TRUE ---
B) FALSE ---

12 . This code snippet matches with which annotation type
public @interface TestAnnotation {
String process();
}
A) Marker ---
B) Single-Element ---
C) Full-value or multi-value ---

13 . The @Deprecated annotation indicates that when a deprecated program element is used, the compiler should NOT give a warning
A) TRUE ---
B) FALSE ---
14 . The @Override annotation indicates that annotated method is required to override a method in a super class. If a method with this annotation does not override the method of super class, the compiler will generate an error
A) TRUE ---
B) FALSE ---

15 . The @Retent annotation indicates where and how long annotations with this type are to be retained
A) TRUE ---
B) FALSE ---

16 . Which statements are CORRECT about Annotation (choose 2)
A) An annotation is the metadata that gives more meaning to the code ---
B) There're two types of annotations like Simple annotation and Meta annotation ---
C) Retrieving and setting the value of an object's field at runtime can be archived ---
D) Help the compiler detected errors and less time consuming to fix than runtime errors ---

17 . The annotation type is used to determine the longevity of the information
A) @SuppressWarnings ---
B) @Deprecated ---
C) @Documented ---
D) @Retention ---
E) @Override ---

18 . Parameters in annotation can be initialized with arrays of values
A) TRUE ---
B) FALSE ---

19 . Parameters in annotation are declared as fields in a class
A) TRUE ---
B) FALSE ---

20 . Parameters in annotation types may define default values for some members
A) TRUE ---
B) FALSE ---

21 . Which statement is wrong about Reflection
A) Enables examining and accessing classes, interfaces and objects in the JVM at runtime ---
B) Information about a class's modifiers, fiealds, methods, and constructors can be stored ---
C) Retrieving and setting the value of an object's field at runtime can be archived ---
D) Invoke a method on an object at runtime is possible ---
E) Creating a new unchangable array and accessing its elements ---

22 . Possessive quantifiers never take the entire input string trying once for match
A) TRUE ---
B) FALSE ---


23 . Captured groups are numbered by counting the opening parentheses from left to right
A) TRUE ---
B) FALSE ---
Reply With Quote
  #2  
Old 11-06-2010, 00:07
lixboi's Avatar
lixboi lixboi is offline
Senior Member
 
Join Date: 01-2008
Posts: 332
Re: Nhờ mấy bác chém hộ vài câu lý thuyết Java >"<

Sry, có bác nào giúp e với, mai thi zồi T_T"
Reply With Quote
  #3  
Old 11-06-2010, 11:27
alerk's Avatar
alerk alerk is offline
Senior Member
 
Join Date: 07-2008
Posts: 789
Re: Nhờ mấy bác chém hộ vài câu lý thuyết Java >"<

Google đi trời , có bài mà ko biết tự thân vận động toàn đem đi hỏi là sao.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump





All times are GMT +7. The time now is 05:29.


Steam Powered by vBulletin® 0.1 pre-alpha
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.