Which tool has interface to trigger managed beans?
Correct Answer: java.exe
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Which class method will be called under lines //Line 1 and //Line 2 in the following code? class Rectangle { double width, length; Rectangle(double width, double length) { this.width = width; this.length = length; } double getArea() { double area = width * length; return area; } void show() { System.out.println(''The width and length are: '' + width + '', '' + length); System.out.println(''The area is: '' + getArea()); } } class Square extends Rectangle { double width, length; Square(double width) { super(width, width); this.width = width; } double getArea() { double area = width * width; return area; } void show() { System.out.println(''The width is: '' + width); System.out.println(''The area is: '' + getArea()); } public static void main(String[] args) { Rectangle shape1 = new Rectangle(5, 2); Square shape2 = new Square(5); shape1.show(); // Line 1 shape2.show(); // Line 2 } }
What kinds of properties can a JavaBean have?
Is it possible to get mapping information from parent class that entity extends?
Will the following code compile? public interface Repository{ void save(Object data); } public abstract class RepositoryImpl implements Repository{ }
Say we have java entity with date field. For example: @Entity class User{ private Date joinDate; public Date getJoinDate(){ return joinDate; } public void setJoinDate(Date joinDate){ this.joinDate = joinDate; } } What JPA annotation will help us specify date format that will be used in database?
Which checks are performed by compiler when you override a nonprivate method?
What is the value of 'd' after this line of code has been executed? double d=Math.round(2.5+Math.round());
Which statement is true about the given code? public class Test78 { public static void main(String[] args) throws Exception { new JBean().setHeight(1).setWidth(2).setDepth(3).setDensity(9); } } class JBean { private int height, width, depth, density; public JBean setHeight (int h) { this.height = h; return this; } public JBean setWidth (int w) { this.width = w; return this; } public JBean setDepth (int d) { this.depth = d; return this; } public JBean setDensity (int d) { this.density = d; return this; } }
Output of the given code? public class Test15 { public static void main(String[] args) { VO a = new VO(2); VO b = new VO(3); swapONE(a, b); print(a, b); swapTWO(a, b); print(a, b); } private static void print(VO a, VO b) { System.out.print(a.toString() + b.toString()); } public static void swapONE(VO a, VO b) { VO tmp = a; a = b; b = tmp; } public static void swapTWO(VO a, VO b) { int tmp = a.x; a.x = b.x; b.x = tmp; } } class VO { public int x; public VO(int x) { this.x = x; } public String toString() { return String.valueOf(x); } }
Which type(s) cannot be used as generics?