programming languages Online Quiz - 201
Description: programming languages Online Quiz - 201 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which of the following are illegal names for the business methods defined in an entity bean home interface?
How many create methods can you declare in the entity bean home interface?
A client calls a finder method whose return type is a Collection of references to the remote interface of an entity bean. Assume no match for that entity is found. Which of the following will be the result of this call?
Which of the following are true statements about what happens when a remove() method is called using the component interface of an entity bean representing a specific entity in the database?
Which of the following statements are true about a CMP entity bean?
Which methods of the EntityContext interface can be called from within an ejbPostCreate of an entity bean class?
Which of the following statements about the entity bean are true?
Consider the method getUserTransaction() of the interface Entity- Context. From which methods of an entity bean class can this method be called?
Given: import java.util.regex.; class Regex2 { public static void main(String[] args) { Pattern p = Pattern.compile(args[o]); Matcher m = p.matcher(args[1]); boolean b = false; while(b = m.find()) { System.out.print(m.start() + m.group()); } } } And the command line: java Regex2 "\d" ab34ef What is the result?
Given: import java.io.*; class Player { Player() { System.out.print("p"); } } class CardPlayer extends Player implements Serializable { CardPlayer() { System.out.print("c"); } public static void main(String[] args){ CardPlayer cl = new CardPlayer(); try { FileOutputStream fos = new FileOutputStream("play.txt"); ObjectOutputStream os = new ObjectOutputStream(fos); os.writeObject(c1); os.close() ; FileInputStream fis = new FileInputStream("play.txt"); ObjectInputStream is = new ObjectInputStream(fis); CardPlayer c2 = (CardPlayer) is.readObject(); is.close(); } catch (Exception x ) { } } } What is the result?
Given that bw is a reference to a valid BufferedWriter And the snippet: 15. BufferedWriter b1 = new BufferedWriter(new File("f")); 16. BufferedWriter b2 = new BufferedWriter(new FileWriter("f1")); 17. BufferedWriter b3 = new BufferedWriter(new PrintWriter("f2")); 18. BufferedWriter b4 = new BufferedWriter(new BufferedWriter(bw)); What is the result?
Given: 1. import java.text.*; 2. class DateOne { 3. public static void main(String[] args) { 4. Date d = new Date(1123631685981L); 5. DateFormat df = new DateFormat(); 6. System.out.println(df.format(d)); 7. } 8. } And given that 1123631685981L is the number of milliseconds between Jan. 1, 1970, and sometime on Aug. 9, 2005, what is the result? (Note: the time of day in option A may vary.)
Given: class Polish { public static void main(String[] args) { int x = 4 ; StringBuffer sb = new StringBuffer("..fedcba"); sb.delete(3,6); sb.insert(3, "az"); if(sb.length() > 6) x = sb.indexOf("b"); sb.delete((x-3), (x-2)); System.out.println(sb); } } What is the result?
JPD is deployed in weblogic as (Choose the best answer)
In a Weblogic Development environment…. (Choose the best answer):
What will be the syntax for the Perform node created by the developer
Of the following which has got the broadest scope (Choose the best answer):
If the method to be overridden has access type protected, choose access types among the following that a subclass can have,
While serializing a class whose Base class is serializable, which of the following fields are ignored?
What is the rule of anonymous class