Happy Diwali
happy diwali

Saturday, 12 April 2014

Interview Queastions

100.                      How to check version of java running on your system?
101.                      How to set classpath when class files are in .jar file?
102.                      How to use finally block for catching exceptions?
103.                      How to use handle the exception heiarchies?
104.                      How to use handle the exception methods?
105.                      How to use handle the runtime exceptions?
106.                      How to use handle the empty stack exception ?
107.                      How to use catch to handle the exception?
108.                      How to use catch to handle chained exception?
109.                      How to use handle the exception with overloaded methods ?
110.                      How to handle the checked exceptions?
111.                      How to pass arguments while throwing checked exception?
112.                      How to handle multiple exceptions (devide by zero)?
113.                      How to handle multiple exceptions (Array out of bound)?
114.                      How to use handle the exception with overloaded methods ?
115.                      How to print stack of the Exception?
116.                      How to use exceptions with thread?
117.                      How to create user defined Exception?
118.                      How to compare paths of two files?
119.                      How to create a new file?
120.                      How to get last modification date of a file?
121.                      How to create a file in a specified directory?
122.                      How to check a file exist or not?
123.                      How to make a file read-only?
124.                      How to renaming a file ?
125.                      How to get a file's size in bytes?
126.                      How to change the last modification time of a file ?
127.                      How to create a temporary file?
128.                      How to append a string in an existing file?
129.                      How to copy one file into another file?
130.                      How to delete a file?
131.                      How to read a file?
132.                      How to write to a file?
133.                      How to reset the pattern of a regular expression?
134.                      How to match duplicate words in a regular expression?
135.                      How to find every occurance of a word?
136.                      How to know the last index of a perticular word in a string?
137.                      How to print all the strings that match a given pattern from a file?
138.                      How to remove the white spaces?
139.                      How to match phone numbers in a list to a certain pattern?
140.                      How to count a group of words in a string?
141.                      How to search a perticular word in a string?
142.                      How to split a regular expression?
143.                      How to count replace first occourance of a String?
144.                      How to check check whether date is in proper format or not?
145.                      How to validate an email address format?
146.                      How to replace all occurings of a string?
147.                      How to make first character of each word in Uppercase?
148.                      How to display text in different fonts?
149.                      How to draw a line using GUI?
150.                      How to display a message in a new frame?
151.                      How to draw a polygon using GUI?
152.                      How to display string in a rectangle?
153.                      How to display different shapes using GUI?
154.                      How to draw a solid rectange using GUI?
155.                      How to create a transparent cursor?
156.                      How to check whether antialiasing is enabled or not?
157.                      How to display colours in a frame?
158.                      How to display a pie chart using a frame?
159.                      How to draw text using GUI?
160.                      How to compare strings?
161.                      How to search last occurance of a substring inside a substring?
162.                      How to remove a particular character from a string?
163.                      How to replace a substring inside a string by another one ?
164.                      How to reverse a String?
165.                      How to search a word inside a string?
166.                      How to split a string into a number of substrings ?
167.                      How to convert a string totally into upper case?
168.                      How to match regions in a string?
169.                      How to compare performance of two strings?
170.                      How to optimize string creation?
171.                      How to format strings?
172.                      How to concatenate two strings?
173.                      How to get unicode of strings?
174.                      How to buffer strings?
175.                       How to display Object class using instanceOf keyword?
JDBC
         13.How to use different column methods in java?

Placement queastions :
1)           Write the code to iterate the elements of Hashmap?
2)           Write down the syntax to get Calendar object?
3)           What is the capacity of StringBuffer by default?
4)           Write a syntax to create ThreadGroup object and add three threads to that?
5)           Write a program to sort the objects of Person(name, age, sal) based on name, if names are same then based on salary?
15)               Write a syntax to view current classpath
16)               How to check a thread has stop or not?
17)               How to display all running Thread?
18)               Why is used for this and super as first statement?
20)               How to use catch to handle chained exception?
21)               How to use finally block for catching exceptions?

22)               What are the default contracters?

No comments:

Post a Comment

happy diwali
happy diwali