Sunday, 24 June 2018

TCS Tech Lounge JAVA Final-13

Which of the following is true?
Ans: all of the above ( Enum in java a data type, Enum can have fields, constructors and methods, enum may implement many interfaces but cannot extend any class because it internally Enum class)

 On UPDATE CASCADE ensure which of the following?
ANS: Data integrity

A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer he input and to support thre mark and reset methods. True/False?
ANS: TRUE

If parent class method is public, Child class can override the method if visibility of the method is _ _ __
ANS: only public

Enum can extend other Enum
ANS: False

Which of these class is not related to input and output stream in terms of functioning?
ANS: File

Available() method throws IOException
ANS: True

public class Test{
                                public static void main(String[] args){
                                    try{
                                                throw new Exception();
                                    }catch(Exception e){
                                                System.out.println("Hello");
                                    }finally{
                                                System.out.println("No Error");
                                    }
                                   
                                }
}
ANS: Hello No Error

How many servlet context is available for an application
ANS: 1.0

Which of these classes can return more than one character to be input stream
ANS:  PushbachReader

_ _ _ _ are declare in a class, but outside method, constructor or any block.
ANS: Instance variables

What is the return type of readLine() method in Bufferedreader class?
ANS:  String

public class test{
                                public static void main(String[] args){
                                    int numValue = 5;
                                    System.out.println(++numValue);
                                    System.out.println(numValue++);
                                }
}

ANS: 6,6

Public InputSreamReader(InputStream in, String enc) throws _ _ _ _
ANS: UnsupportedEncodingException

Binary numbers need more places for counting because
ANS: Binary base is small

The parameter of the PreparedStatement object are _ _ _ _ when the user clicks on the Query button.
ANS: Initilized

Create domain YearlySalary numeric(8.2) constraint salary value test _ _ _ _; In order to ensure that an instructor’s salary domain allows only values greater than specified alue use:
ANS: check(value >= 29000.00)

Wallet has money but money doesn’t need to have Wallet necessarily. Which class relationship better explains this scenario?
ANS: Aggregation
The SELECT command, with its various clauses, allows users to query the data contained in the tables and ask many different questions or ad hoc queries.
ANS: True

JDBC is a _ _ _ _ interface, which means that it is used to invoke SQL commands directly


ANS: low-level

1 comment:

  1. Thanks for sharing this informative content , Great work
    Leanpitch provides online training in Product prototyping during this lockdown period everyone can use it wisely.
    icp-cat training

    ReplyDelete