chinni005 Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='HAPPYNESS' timestamp='1371677575' post='1303871667'] M ki rubberband kattukuni laagukooo ....saregga raayi oka program Chrlapallii mayya rasinattu lekapote google nundi anna ettukura clear ga unna example [img]http://i.imgflip.com/1tu9a.gif[/img] [/quote] [size=4] [/size] Link to comment Share on other sites More sharing options...
biscuitRAJA000 Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='Chinni_' timestamp='1371677608' post='1303871671'] haffy vuncle ni chusi nerchuko [/quote] alage Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='HAPPYNESS' timestamp='1371677248' post='1303871635'] How will you write a JUnit case to handle following scenario. Will you handle checked or unchecked exception - There are only 10 gates available at an Airport. Junit Scenario to handle if the Number of Planes are more than 10. idoka interview question [/quote] public boolean/int isGateAvaialbe() { //get the total list of gates available //or return the boolean } if(isGateAvaialbe() )or count >o { getThegetNumber()//may be longest duration of empty } public void occupayGate(){ } in this line we can write juint cases accordingly if this is what u r looking let me know we will work further Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 19, 2013 Report Share Posted June 19, 2013 another good example as u said is logger./ properties so in interview u can tell there were 2 secnerios' like one DBConnection and logger Link to comment Share on other sites More sharing options...
king420 Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='cherlapalli_jailer' timestamp='1371677843' post='1303871698'] another good example as u said is logger. so in interview u can tell there were 2 secnerios' like one DBConnection and logger [/quote] ok mayyaa String Immutable ante enti koncham cheppu Link to comment Share on other sites More sharing options...
king420 Posted June 19, 2013 Report Share Posted June 19, 2013 Aspect Oriented Programming ante enti? Aspect Advice Point Cut JoinPoint ivanni adugutunnaru Link to comment Share on other sites More sharing options...
chinni005 Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='HAPPYNESS' timestamp='1371677959' post='1303871713'] ok mayyaa String Immutable ante enti koncham cheppu [/quote] [color=#000000][font=Arial,]String is immutable means that you cannot change the object itself, but you can change the reference ofcourse. When you called [/font][/color]a = "ty"[color=#000000][font=Arial,], you are actually changing the reference of [/font][/color]a[color=#000000][font=Arial,] to a new object created by the String literal [/font][/color]"ty"[color=#000000][font=Arial,]. Changing an object means to use its methods to change one of its fields, for example:[/font][/color] Foo x = new Foo("the field"); x.setField("a new field"); System.out.println(x.getField()); // prints "a new field" String s = "some text"; s.substring(0,4); System.out.println(s); // still printing "some text" String a = s.substring(0,4); System.out.println(a); // prints "some" Link to comment Share on other sites More sharing options...
chinni005 Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='HAPPYNESS' timestamp='1371678045' post='1303871722'] Aspect Oriented Programming ante enti? Aspect Advice Point Cut JoinPoint ivanni adugutunnaru [/quote] [img]http://www.andhrafriends.com/uploads/gallery/album_15/gallery_24383_15_124772.gif[/img] Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='HAPPYNESS' timestamp='1371678045' post='1303871722'] Aspect Oriented Programming ante enti? Aspect Advice Point Cut JoinPoint ivanni adugutunnaru [/quote] neeyamma mari intha daarunam enti bayya? manam development cheyyala leka ....java lanti inko language raayala? thokka gallaki Link to comment Share on other sites More sharing options...
king420 Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='Chinni_' timestamp='1371678111' post='1303871730'] [color=#000000][font=Arial,]String is immutable means that you cannot change the object itself, but you can change the reference ofcourse. When you called [/font][/color]a = "ty"[color=#000000][font=Arial,], you are actually changing the reference of [/font][/color]a[color=#000000][font=Arial,] to a new object created by the String literal [/font][/color]"ty"[color=#000000][font=Arial,]. Changing an object means to use its methods to change one of its fields, for example:[/font][/color] Foo x = new Foo("the field"); x.setField("a new field"); System.out.println(x.getField()); // prints "a new field" String s = "some text"; s.substring(0,4); System.out.println(s); // still printing "some text" String a = s.substring(0,4); System.out.println(a); // prints "some" [/quote] endi raa idi..equals() , == use chesi cheppu clear ga... FOO endi ra inkem dorakaleda ...neenu asale 1 line code raste 10 error lu vastaiii Link to comment Share on other sites More sharing options...
king420 Posted June 19, 2013 Report Share Posted June 19, 2013 Interview ki Basics ne atu thippi itu thipppi adugutunnaru real time scenario lo so baaga brain storming cheyyali Link to comment Share on other sites More sharing options...
king420 Posted June 19, 2013 Report Share Posted June 19, 2013 Different stages of a thread New Runnable Blocked Waiting Time-Waiting Terminated NEW A thread that has not yet started is in this state. RUNNABLE A thread executing in the Java virtual machine is in this state. BLOCKED A thread that is blocked waiting for a monitor lock is in this state. WAITING A thread that is waiting indefinitely for another thread to perform a particular action is in this state. TIMED_WAITING A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state. TERMINATED A thread that has exited is in this state. Link to comment Share on other sites More sharing options...
king420 Posted June 19, 2013 Report Share Posted June 19, 2013 Executing Synchronous and Asynchronously Link to comment Share on other sites More sharing options...
king420 Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='JAINTR' timestamp='1371673235' post='1303871257'] multiple threading in corejava is must to learn? [/quote] For example, when downloading a large file (e.g., an image, an audio clip or a video clip) over the Internet, the user may not want to wait until the entire clip downloads before starting the playback. To solve this problem,multiple threads can be used—one to download the clip, and another to play it. These activities proceed concurrently. To avoid choppy playback, the threads are synchronized (that is, their actions are coordinated) so that the player thread doesn’t begin until there’s a sufficient amount of the clip in memory to keep the player thread busy. The Java Virtual Machine (JVM) creates threads to run programs and threads to perform housekeeping tasks such as garbage collection. Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='HAPPYNESS' timestamp='1371677959' post='1303871713'] ok mayyaa String Immutable ante enti koncham cheppu [/quote] String is immutable StringBuffer is mutable.. is the simple answer.. waht we do normally is String str = new String() ; Str = Str +"1" //like looping ; or Str = "1" + str ; litterly every time we are reframing the value of string where as StringBuffer sb = new StringBuffer() ; sb.append("1") ; thats all we are appened new value every time to exisitng Link to comment Share on other sites More sharing options...
Recommended Posts