:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
 Categories >> Software >> Java Related >> Java J2EE >> Core Java       
Suggest New Category 


View Page with Answers
  Question  Asked @ Answers Views     select
public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }  1  41
why abstract class does not have object creation Value-Labs  2  262
Java does not support multiple inheritance. how interface helps in the same? Tcs  2  719
what is object slice? htc   0  129
take any 4 input numbers. like 2345.. wanted out put is All 16 combinations of the number 2345.. for example- taking input as 4565 output- 5654 4556 4655.. Emphasis  1  417
what type of questions asked for barclays technologies pune please send urgent  0  152
solve (x-1)(x-9)=8; Manhattan   0  155
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box. Manhattan  0  117
aabccdee Find the used alphabets as abcde ?  3  462
If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?  4  697
How to Sort list of Strings in ascending order without using java api. Hcl  1  1063
How to Sort Strings which are given in List and display in ascending order without using java api. Lic  1  349
please send me hr interview questions in it industry  0  252
hr interview how many minutes asking question  0  229
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?  2  557
E-Mail New Answers        Answer Selected Questions        Post New Core Java Question
 [1]    2  ... 9   ... 17   ... 25   ... 33   ... 41   ... 49   ... 57   ... 65   ... 73   ... 81   ... 89   ... 97   ... 105   ... 113    Next
    Core Java Interview Questions     Advanced Java Interview Questions     Swing Interview Questions
    EJB Interview Questions     Servlets Interview Questions     Struts Interview Questions
    JDBC Interview Questions     JMS Interview Questions     SunOne Interview Questions
    J2EE Interview Questions     Weblogic Interview Questions     Websphere Interview Questions
    Java Networking Interview Questions     Java J2EE AllOther Interview Questions
Un-Answered Questions
 Question Views Asked at   Select
Why does java not allow multiple public classes in a java file ? 478  
Tell me about your ability to work under pressure 229  
The following program reads data (details of students) from a file named students.txt and converts it into e-mail addresses. The results are written to a file named studentemail.txt. students.txt consists of a number of lines, each containing the data of a student in colon delimited format: Last Name:First Name:Student Number Each input record is converted to an e-mail address and written to studentemail.txt in the following format: the first character of the last name + the first character of the first name + the last four digits of the student number + “” import*; public class EmailConverter { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new FileReader ("students.txt")); PrintWriter output = new PrintWriter(new FileWriter ("studentemail.txt")); String line = input.readLine(); while (line != null) { // Extract the information for each student String[] items = line.split(":"); // Generate the email address String email = "" + items[0].charAt(0) + items[1].charAt(0) + items[2].substring(4,8) + ""; email = email.toLowerCase(); // Output output.println(email); line = input.readLine(); } input.close(); output.close(); } } Rewrite the class so that it handles possible errors that may occur. In particular, it should do the following: • It should catch at least three appropriate exceptions that might occur, and display suitable messages. • At this stage, the program will not run correctly if there is an empty line in the input file. Change the program so that if an empty line is encountered, an exception is thrown and the empty line is ignored. This exception should be handled with the display of a suitable error message. • Before the e-mail address is added to the output file, check if the student number has 8 digits. If not, throw an InvalidFormatException (which the program should not handle itself) 191  
How do you download stubs from Remote place? 120  
how to deploy apache tomcat server to weblogic server in java 312 IBM
what is the messsage u r going to get from an objectoriented programing? 242 MGL
What does those terms actually mean included in the j.d.k i.6? 294  
what is server side caching? 310 AIG
how can i use a nonsynchronized hashtable? 257 CoreObjects
what is dafault constructor and paramererised constructor with example? 292 KPIT
what is mena by object block any what is the use of that 273 CGI
I want to store more than 10 objects in a remote server? Which methodology will follow? 478  
E-Mail New Answers        Answer Selected Questions

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright © 2013  All Rights Reserved.   ::