68601. Pathologic loss of both enamel and dentin caused by biomechanicalloading forces
68602. Dentin deposited around pulp chamber throughout life of the tooth due to ageing
68603. Localized masses of calcified tissue in the pulp that resemble normal dentin
68604. Pink tooth of mummery is caused by
68605. public Object m() { Object o = new Float(3.14F); Object [] oa = new Object[l]; oa[0] = o; / Line 5 / o = null; / Line 6 / oa[0] = null; / Line 7 / return o; / Line 8 / } When is the Float object, created in line 3, eligible for garbage collection?
68606. class X2 { public X2 x; public static void main(String [] args) { X2 x2 = new X2(); / Line 6 / X2 x3 = new X2(); / Line 7 / x2.x = x3; x3.x = x2; x2 = new X2(); x3 = x2; / Line 11 / doComplexStuff(); } } after line 11 runs, how many objects are eligible for garbage collection?
68607. What allows the programmer to destroy an object x?
68608. Cementicles are small foci of calcified tissue which lie in the
68609. Pain is more apt to be a feature of
68610. Trench mouth disease is
68611. Most common microbial disease affecting calcified tissues of the teeth
68612. void start() { A a = new A(); B b = new B(); a.s(b); b = null; / Line 5 / a = null; / Line 6 / System.out.println("start completed"); / Line 7 / } When is the B object, created in line 3, eligible for garbage collection?
68613. class HappyGarbage01 { public static void main(String args[]) { HappyGarbage01 h = new HappyGarbage01(); h.methodA(); / Line 6 / } Object methodA() { Object obj1 = new Object(); Object [] obj2 = new Object[1]; obj2[0] = obj1; obj1 = null; return obj2[0]; } } Where will be the most chance of the garbage collector being invoked?
68614. class Bar { } class Test { Bar doBar() { Bar b = new Bar(); / Line 6 / return b; / Line 7 / } public static void main (String args[]) { Test t = new Test(); / Line 11 / Bar newBar = t.doBar(); / Line 12 / System.out.println("newBar"); newBar = new Bar(); / Line 14 / System.out.println("finishing"); / Line 15 / } } At what point is the Bar object, created on line 6, eligible for garbage collection?
68615. class Test { private Demo d; void start() { d = new Demo(); this.takeDemo(d); / Line 7 / } / Line 8 / void takeDemo(Demo demo) { demo = null; demo = new Demo(); } } When is the Demo object eligible for garbage collection?
68616. public class X { public static void main(String [] args) { X x = new X(); X x2 = m1(x); / Line 6 / X x4 = new X(); x2 = x4; / Line 8 / doComplexStuff(); } static X m1(X mx) { mx = new X(); return mx; } } After line 8 runs. how many objects are eligible for garbage collection?
68617. Life saving drug in anaphylaxis
68618. Whining type of behavior means:
68619. Which is used for caries diagnosis
68620. Stainless steel crown is:
68621. Which brushing trechnique is good for children
68622. class Foo { class Bar{ } } class Test { public static void main (String [] args) { Foo f = new Foo(); / Line 10: Missing statement ? / } } which statement, inserted at line 10, creates an instance of Bar?
68623. public class MyOuter { public static class MyInner { public static void foo() { } } } which statement, if placed in a class other than MyOuter or MyInner, instantiates an instance of the nested class?
68624. What will be the output of the program? public class Foo { Foo() { System.out.print("foo"); } class Bar { Bar() { System.out.print("bar"); } public void go() { System.out.print("hi"); } } / class Bar ends / public static void main (String [] args) { Foo f = new Foo(); f.makeBar(); } void makeBar() { (new Bar() {}).go(); } }/ class Foo ends /
68625. What will be the output of the program? public class HorseTest { public static void main (String [] args) { class Horse { public String name; / Line 7 / public Horse(String s) { name = s; } } / class Horse ends / Object obj = new Horse("Zippo"); / Line 13 / Horse h = (Horse) obj; / Line 14 / System.out.println(h.name); } } / class HorseTest ends /
68626. What will be the output of the program? public class TestObj { public static void main (String [] args) { Object o = new Object() / Line 5 / { public boolean equals(Object obj) { return true; } } / Line 11 / System.out.println(o.equals("Fred")); } }
68627. What will be the output of the program? public abstract class AbstractTest { public int getNum() { return 45; } public abstract class Bar { public int getNum() { return 38; } } public static void main (String [] args) { AbstractTest t = new AbstractTest() { public int getNum() { return 22; } }; AbstractTest.Bar f = t.new Bar() { public int getNum() { return 57; } }; System.out.println(f.getNum() + " " + t.getNum()); } }
68628. Which is true about an anonymous inner class?
68629. class Boo { Boo(String s) { } Boo() { } } class Bar extends Boo { Bar() { } Bar(String s) {super(s);} void zoo() { // insert code here } } which one create an anonymous inner class from within class Bar?
68630. Which is true about a method-local inner class?
68631. Which statement is true about a static nested class?
68632. Which constructs an anonymous inner class instance?
68633. Which is called as arch criminal
68634. Ormocer is
68635. First clinically tested plantibody
68636. Most commonly affected system in dawn’s syndrome patient
68637. Choking off phenomenon is seen in
68638. What will be the output of the program? String x = new String("xyz"); String y = "abc"; x = x + y; How many String objects have been created?
68639. What will be the output of the program? public class WrapTest { public static void main(String [] args) { int result = 0; short s = 42; Long x = new Long("42"); Long y = new Long(42); Short z = new Short("42"); Short x2 = new Short(s); Integer y2 = new Integer("42"); Integer z2 = new Integer(42); if (x == y) / Line 13 / result = 1; if (x.equals(y) ) / Line 15 / result = result + 10; if (x.equals(z) ) / Line 17 / result = result + 100; if (x.equals(x2) ) / Line 19 / result = result + 1000; if (x.equals(z2) ) / Line 21 / result = result + 10000; System.out.println("result = " + result); } }
68640. What will be the output of the program? public class BoolTest { public static void main(String [] args) { int result = 0; Boolean b1 = new Boolean("TRUE"); Boolean b2 = new Boolean("true"); Boolean b3 = new Boolean("tRuE"); Boolean b4 = new Boolean("false"); if (b1 == b2) / Line 10 / result = 1; if (b1.equals(b2) ) / Line 12 / result = result + 10; if (b2 == b4) / Line 14 / result = result + 100; if (b2.equals(b4) ) / Line 16 / result = result + 1000; if (b2.equals(b3) ) / Line 18 / result = result + 10000; System.out.println("result = " + result); } }
68641. What will be the output of the program? public class ObjComp { public static void main(String [] args ) { int result = 0; ObjComp oc = new ObjComp(); Object o = oc; if (o == oc) result = 1; if (o != oc) result = result + 10; if (o.equals(oc) ) result = result + 100; if (oc.equals(o) ) result = result + 1000; System.out.println("result = " + result); } }
68642. What will be the output of the program? public class Example { public static void main(String [] args) { double values[] = {-2.3, -1.0, 0.25, 4}; int cnt = 0; for (int x=0; x < values.length; x++) { if (Math.round(values[x] + .5) == Math.ceil(values[x])) { ++cnt; } } System.out.println("same results " + cnt + " time(s)"); } }
68643. What will be the output of the program? public class Test178 { public static void main(String[] args) { String s = "foo"; Object o = (Object)s; if (s.equals(o)) { System.out.print("AAA"); } else { System.out.print("BBB"); } if (o.equals(s)) { System.out.print("CCC"); } else { System.out.print("DDD"); } } }
68644. What will be the output of the program? String x = "xyz"; x.toUpperCase(); / Line 2 / String y = x.replace('Y', 'y'); y = y + "abc"; System.out.println(y);
68645. What will be the output of the program? int i = (int) Math.random();
68646. What will be the output of the program? class A { public A(int x){} } class B extends A { } public class test { public static void main (String args []) { A a = new B(); System.out.println("complete"); } }
68647. What will be the output of the program? int i = 1, j = 10; do { if(i++ > --j) / Line 4 / { continue; } } while (i < 5); System.out.println("i = " + i + "and j = " + j); / Line 9 /
68648. What will be the output of the program? public class ExamQuestion7 { static int j; static void methodA(int i) { boolean b; do { b = i<10 | methodB(4); / Line 9 / b = i<10 || methodB(8); / Line 10 / }while (!b); } static boolean methodB(int i) { j += i; return true; } public static void main(String[] args) { methodA(0); System.out.println( "j = " + j ); } }
68649. What will be the output of the program? try { Float f1 = new Float("3.0"); int x = f1.intValue(); byte b = f1.byteValue(); double d = f1.doubleValue(); System.out.println(x + b + d); } catch (NumberFormatException e) / Line 9 / { System.out.println("bad number"); / Line 11 / }
68650. What will be the output of the program? class Q207 { public static void main(String[] args) { int i1 = 5; int i2 = 6; String s1 = "7"; System.out.println(i1 + i2 + s1); / Line 8 / } }