Follow Quotesrain
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions

Placement Papers with Solutions

Company

  • 3i-Infotech 345
  • Accenture 547
  • ADITI 81
  • Athenahealth 72
  • CADENCE 37
  • Capgemini 519
  • CMC 49
  • Cognizant 29
  • CSC 480
  • CTS 1340
  • Dell 49
  • Elitmus 44
  • GENPACT 516
  • Google 55
  • HCL 217
  • Hexaware 92
  • Huawei 81
  • IBM 1714
  • IGate 169
  • Infosys 2050
  • L&T 299
  • Microsoft 61
  • Miscellaneous 204
  • Oracle 74
  • Other 95
  • Patni 199
  • Sapient 44
  • Sasken 31
  • Self 38
  • Syntel 530
  • TCS 9108
  • Tech Mahindra 500
  • Wipro 1182

Exam

  • ACIO 119
  • AIEEE 334
  • AMCAT 2636
  • Assessment 108
  • Bank 22
  • CAT 988
  • CMAT 82
  • Cocubes 39
  • Elitmus 2952
  • Exam 39
  • Gate 846
  • GMAT 107
  • Gmate 29
  • GRE 469
  • IIT-JEE 471
  • ITC 28
  • Maths Olympiad 205
  • MBA 3480
  • MCA 32
  • Other 159
  • Others 25
  • R-SAT 111
  • Self 68

Government Jobs Exams

  • Bank Exam 478
  • CDS 57
  • CTET 21
  • IBPS 1258
  • IES EC 44
  • KVPY 364
  • NDA 481
  • NTSE 36
  • REVENUE OFFICE 53
  • RRB 1029
  • SSC 1294
  • UPSC 441

Interview

  • HR Interview 426
  • HR Round 41

Maths Puzzle

  • A website 297
  • Book 23779
  • Campus 248
  • CMAT 49
  • Exam 86152
  • General 399
  • Interview 141
  • M4maths 295
  • Maths 226
  • Orkut 27
  • Other 72
  • Others 1356
  • Reasoning 101
  • Self 3157

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70
Keep an EYE (0)Interview Experience (254)
Solved Question (6040) UnSolved Question (153935)
Pages: 15998FirstPrev123456789NextLast
Advertisements

(#M40167132) JAVA QUESTION Exceptions 2 Keep an EYE Keep an eye puzzle Keep an eye puzzle

class ProductNotFoundException extends Exception {

//Some code

}

class Shop {

public void findProduct(int productId) throws ProductNotFoundException {

//some code

throw new ProductNotFoundException();

//some code

}

}

class ABCShop{

public void findProductsList(){

new Shop().findProduct(101);

}

}

Which of the following statement(s) are true for the above code?

A. This code will compile if we add throws ProductNotFoundException in the signature of method findProductsList().
B. This code will compile but returns no output
C. This code will compile if we add a try-catch block in findProductsList().
D. This code will compile if in method findProductsList () returns a list instead of void

Asked In Java Jax (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (7)   (10) Submit Your Solution

(#M40167131) JAVA QUESTION Exceptions Keep an EYE Keep an eye puzzle Keep an eye puzzle

Observe the code.

public class Sample {

public static void main(String args[]) {

int i=10,j=0,k;

try {

k=i/j;

}

catch(Exception e) {

System.out.println("Exception");

}

catch(ArithmeticException e) {

System.out.println("Arithmetic exception");

}

}

}

Predict the output.

A. ArithmeticException
B. Compilation Fails
C. Exception
ArithmeticException
D. Runtime exception

Asked In Java Jax (1 year ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (1)   (3) Submit Your Solution Technical
Advertisements

(#M40167130) JAVA QUESTION finally block Keep an EYE Keep an eye puzzle Keep an eye puzzle

finally block will get executed whether or not an exception occurs. State True or False

Asked In Java Jax (1 year ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical

(#M40167129) JAVA QUESTION try, catch and finally Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following statement(s) are not true?

A. For each try block there can be zero or more catch blocks but only one finally block
B. Finally block will get executed whether or not an exception occurs.
C. A try block must be followed only by at least one catch block
D. A try block has multiple catch block, then those exception handlers can be in any order

Asked In Java Jax (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical

(#M40167128) JAVA QUESTION Exceptions Keep an EYE Keep an eye puzzle Keep an eye puzzle

Exception is an abnormal event or error that occurs during ________

A. Runtime
B. Compile time
C. any time - unpredictable
D. Any of these options

Asked In Java Jax (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (2) Submit Your Solution Arrays

(#M40167127) JAVA QUESTION Checked vs Unchecked exceptions Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which exceptions should be explicitly handled or properly propagated?

A. Unchecked exceptions
B. Checked exceptions
C. Errors
C. None of the above

Asked In Java Jax (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (1)   (0) Submit Your Solution Basics

(#M40167126) JAVA QUESTION static import Keep an EYE Keep an eye puzzle Keep an eye puzzle

Identify the correct options from the classes provided below.
More than one may be correct.

A. import static edu.ABC.model.Account.*;
public class Loan {
public double getInterest() {
return INTEREST_RATE;
}
}

B. import static edu.ABC.model.Account ;
public class Loan {
public double getInterest() {
return INTEREST_RATE;
}
}

C. import edu.ABC.model.Account ;
public class Loan {
public double getInterest() {
return Account.INTEREST_RATE;
}
}

D. package edu.ABC.model;
public class Loan {
public double getInterest() {
return INTEREST_RATE;
}
}

Asked In Java Jax (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (1)   (1) Submit Your Solution Arrays

(#M40167125) JAVA QUESTION String objects Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is special about string objects as compared to objects of other derived types?(More than 1 may be correct)

A. Java provides string constant pool to store the string objects
B. You can concatenate two string objects using ‘+’
C. You can create string objects without or without using new operator

Asked In Java Jax (1 year ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40167124) JAVA QUESTION Is array column size mandatory? Keep an EYE Keep an eye puzzle Keep an eye puzzle

Column size is mandatory to create an array in java. State true or false

Asked In Java Jax (1 year ago)
Unsolved
Is this Puzzle helpful?   (3)   (1) Submit Your Solution

(#M40167123) JAVA QUESTION StringBuilder vs StringBuffer Keep an EYE Keep an eye puzzle Keep an eye puzzle

class MyLogger
{
private StringBuilder logger = new StringBuilder();
public void log(String message, String user)
{
logger.append(message);
logger.append(user);
}
}

The programmer must guarantee that a single MyLogger object works properly for a multi threaded system. How must this code be changed to be thread-safe?

A. Replace StringBuilder with StringBuffer

B. Replace StringBuilder with just a String object and use the string concatenation (+=) within the log method.

C. No change is necessary, the current MyLogger code is already thread-safe.

D. Synchronize the log method

Asked In Java Jax (1 year ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution
Keep an EYE (0)Interview Experience (254)
Solved Question (6040) UnSolved Question (153935)
Pages: 15998FirstPrev123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

There r few things whch we knw whch r nt capable of mathmatical reasoning nd when these can nt it is a sign dt our knowledge of them is very smal nd confusd nd where a mathmaticl reasing can be had . It is as dark a foly to make use a candle stick as to g

Unknown

A MAN IS LIKE A FRACTION WHOSE NUMERATOR IS WHAT HE IS AND WHOSE DENOMINATOR IS WHAT HE THINK ABOUT HIMSELF LARGER THE DENOMINATOR SMALLER THE FRACTION

UNKNOWN

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 3 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 3 years ago
  • 2496K+Registerd user
  • 1748K+Engineers
  • 748K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com