Ask a questionAsk a question
 

Proposed Answer25 question "java"

  • Saturday, August 15, 2009 7:11 PMparinavv007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The name of a Java program file must match the name of the class with the extension .java

    1. True

          B.  False

    Two methods cannot have the same name in Java.

    A.   True

    1. False

    The modulus operator (%) can be used only with integer operands

    1. True
    2. False

    Declarations can appear anywhere in the body of a Java method.

    1. True
    2. False

    All the bitwise operators have the same level of precedence in Java.

    1. True
    2. False

    When X is a positive number, the operations x>>2 and x>>>2 both produce the same result.

    1. True

          B.  False

    If a=10 and b=15, then the statement x=(a>b)?a:b; assigns the value 15 to x

    1. True

          B.  False

    In evaluating a logical expression of type

    Boolean expression1 && Boolean expression2

    Both the Boolean expressions are not always evaluated.

    1. True

          B.  False

    In evaluating the expression (x == y && a<b) the boolean expression x==y is evaluated first and then a<b is evaluated.

    1. True

          B.  False

    The default base is always required in the switch selection structure.

    1. True

          B.  False

    The break statement is required in the default case of a switch selection structure.

    1. True

          B.  False

    The expression (x ==y && a<b) is true if either x == y is true or a<b is true

    1. True

          B.  False

    A variable declared inside the for loop control cannot be referenced outside the loop

    1. True

          B.  False

    Java always provides a default constructor to a class

    1. True

          B.  False

    When present package must be the first noncomment statement in the file.

    1. True

          B.  False

    The import statement is always the first noncomment statement in a Java program file

    1. True

          B.  False

    Objects are passed to a method by use of call-by-reference

    1. True

          B.  False

    It is perfectly legal to refer to any instance variable inside of a static method.

    1. True

          B.  False

    When we implement an interface method, it should be declared as public

    1. True

          B.  False (abstract)

    We can overload methods with differences only in their return type

    1. True

          B.  False

    It is an error to have a method with the same signature in both the super class and its subclass.

    1. True

          B.  False

    A constructor must always invoke its super class constructor in its first statement.

    1. True

          B.  False

    Subclasses of an abstract class that do not provide an implementation of an abstract method, are also abstract.

    1. True

          B.  False

    Any class may be inherited by another class in the same package.

    1. True

          B.  False

    Any method in a super class can be overridden in its subclass.

    1. True

          B.  False

    •  

All Replies

  • Thursday, August 20, 2009 2:51 AMkaymaf Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    This is J# forum, most of your questions are native java. It will be nice if you can ask the question at native java forum http://forums.sun.com/index.jspa.

    kaymaf
    I hope this helps, if that is what you want, just mark it as answer so that we can move on
    • Proposed As Answer bypoonam thind Sunday, October 18, 2009 11:53 AM
    •  
  • Monday, October 19, 2009 12:18 AMMr. kashyap Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    motto tainu answers chahide c tan mainu dasdi. net te pange lain di lod ki c puttar.
  • Monday, October 19, 2009 12:27 AMMr. kashyap Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Answers  only for u Dear Motto

    1.    F                                     
    14.  T                                   
    2.    F                                     
    15.  T
    3.    F                                      16.  F
    4.    T                                      17.  T
    5.    F                                      18.  T
    6.    F                                      19.  T
    7.    T                                      20.  F 
    8.    F                                      21.  T
    9.    T                                      22.  T
    10.  T                                      23.  T
    11.  T                                      24.  F
    12.  F                                      25.  F
    13.  T

  • Sunday, October 25, 2009 3:34 PMparinavv007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    ok mai dekhta hu.

    what is the meaning of motto.