Popular Localities

Bangalore

Delhi

Noida

Gurgaon

Mumbai

Hyderabad

Kolkata

Chennai

Pune

Ahmedabad

Chandigarh

Online Services

Student Enquiries

Jobs

loading......

coming soon

Coming Soon

We are in process of building the inventory of good professionals in this category

Got it!
Java Training

Java Training

+ Follow 15,723 Followers

Share

Showing 1 to 25 of 159
Sort By: 
A

Show previous answers

A

Adil replied | 25 Oct

Hello..I can't see any of the details (phone number ) of anyone who replied to me. Please reach me at 84 six six 876 zero 73 or email at adilmd98 at gmail dot com

0 0

K. Das replied | 26 Oct

I can help you,but i am based out of bangalore. Also i am free on saturday and sunday.Let me know if it works.

0 0

Answer

You can add upto 6 Images

Show previous answers

Amaldev P S replied | 07 Sep

I have done this in javascript . i think u just only need to replace the var with string .

var myStr = "Thith ith my thtring";
var newStr = "";
for(var i=0;i{
newStr = newStr.concat( (myStr[i]=="s")?"th":myStr[i]);
};

0 0
A

Abhishek replied | 08 Sep

Apart from all the basic ways, this can be done with the help of pattern(regular expressions) which in-turn applies String class replaceAll method:
public static String replaceString(String sourceStr, String replaceString, String replaceBy) {
return Pattern.compile(replaceString).matcher(sourceStr).replaceAll(replaceBy);
}

public static void...  more»
Apart from all the basic ways, this can be done with the help of pattern(regular expressions) which in-turn applies String class replaceAll method:
public static String replaceString(String sourceStr, String replaceString, String replaceBy) {
return Pattern.compile(replaceString).matcher(sourceStr).replaceAll(replaceBy);
}

public static void main(String[] args) {
System.out.println(replaceString("This is my string", "s", "th"));
}

Output:
Thith ith my thtring «less

0 0

Answer

You can add upto 6 Images

R

Raja 07 Aug in  Java Training Classes

Show previous answers

Prasad replied | 02 Sep

you can approach me for the guidance

0 0

Satyam Web Solution Project replied | 02 Sep

Satyam Web Solution is best option in Jaipur.

0 0

Answer

You can add upto 6 Images

V

Vinod 18 Jul in  Java Training Classes

Show previous answers

Vishal replied | 26 Aug

If your question is how to program in java, then you can do that by downloading jdk on your system. Then you can either work from command line and compile and run your programs manually with javac and java commands. Or you can download an IDE like eclipse or netbeans which automatically detects java installation on your system and provide you an easy interface to work with. Happy...  more»
If your question is how to program in java, then you can do that by downloading jdk on your system. Then you can either work from command line and compile and run your programs manually with javac and java commands. Or you can download an IDE like eclipse or netbeans which automatically detects java installation on your system and provide you an easy interface to work with. Happy coding.

Thanx «less

0 0

Deb Prakash Chatterjee replied | 06 Sep

You Have to write code in IDE and make many more exciting programs. That's how java is used.

0 0

Answer

You can add upto 6 Images

R

Reshma 08 Jul in  Java Training Classes

Show previous answers

Saptarshi Mukhaty replied | 19 Sep

Syntactically yes.. you can create object by inner anonymous class. But that is not creating any object
in heap as other normal concrete class. so basic answer is no.

0 0
B

Balaji replied | 03 Oct

No. 'Abstract' means incomplete. Abstract class is also an incomplete class. Only concrete classes can be instantiated.

0 0

Answer

You can add upto 6 Images

S

Sushil 08 Jul in  Java Training Classes

Show previous answers

J

Java Guru replied | 03 Sep

Both the keywords are opposite of each other.
Abstract with methods means no implementation and it becomes mandatory for the subclass to either override abstract method from super class if subclass needs to else make it abstract again so its own subclass will give implementation. Whereas final with method means it dont need to be override again as super class designer dont...  more»
Both the keywords are opposite of each other.
Abstract with methods means no implementation and it becomes mandatory for the subclass to either override abstract method from super class if subclass needs to else make it abstract again so its own subclass will give implementation. Whereas final with method means it dont need to be override again as super class designer dont want to overridde the final method considering no further extension or new implementation is needed for those method. Example String class methods. «less

0 0

Karan replied | 06 Sep

No, Both are opposite of each other.
Abstract means without body, so body is provided by any of its child class.
While final signifies that method implementation is final and must be used as it is, everywhere.

0 0

Answer

You can add upto 6 Images

N

Neval 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

Abstraction and Encapsulation are two important Object Oriented Programming (OOPS) concepts. Encapsulation and Abstraction both are interrelated terms. Encapsulate means to hide. Encapsulation is also called data hiding.You can think Encapsulation like a capsule (medicine tablet) which hides medicine inside it

0 0

Alok replied | 26 Aug

Abstraction is process to hiding implementation, encapsulation is process of binding state and behavior of a class and controlling what should be visible to other classes.

0 0

Answer

You can add upto 6 Images

A

Agastya 08 Jul in  Java Training Classes

Show previous answers

Nipun replied | 04 Aug

finally is introduced to perform the cleanup operations such as closing the open DB connection clearing up the resources etc.

0 0

Sreekanth replied | 18 Aug

Java finally block is a block that is used to execute important code such as closing connection, stream etc. Java finally block is always executed whether exception is handled or not. Java finally block must be followed by try or catch block

0 0

Answer

You can add upto 6 Images

N

Show previous answers

Ramesh replied | 04 Aug

String - immutable (uneditable)
StringBuffer - mutable (editable) AND Synchronized (concurrent access is not possible by multiple threads)
StringBuilder - mutable (editable) AND UnSynchronized (concurrent access is possible by multiple threads)

0 0

Sreekanth replied | 18 Aug

String is immutable, if you try to alter their values, another object gets created, whereas StringBuffer and StringBuilder are mutable so they can change their values. Thread-Safety Difference: The difference between StringBuffer and StringBuilder is that StringBuffer is thread-safe.

0 0

Answer

You can add upto 6 Images

A

Anitha 08 Jul in  Java Training Classes

Show previous answers

Alok replied | 26 Aug

No, you don't need to.
its available by default.

0 0
B

Balaji replied | 03 Oct

Nope.

0 0

Answer

You can add upto 6 Images

S

Sarala 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

If an exception is thrown prior to the try block, the finally code will not execute. The finally block always executes when the try block exits. So you can use finally without catch but you must use try.

0 0
B

Balaji replied | 03 Oct

No. But it can be used without a catch block.

0 0

Answer

You can add upto 6 Images

A

Akash 08 Jul in  Java Training Classes

Show previous answers

S

Sagar replied | 04 Aug

Eclipse is more popular since it has more flexible plug-ins facility

0 0

Sreekanth replied | 18 Aug

Eclipse

0 0

Answer

You can add upto 6 Images

P

Parminder 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

An interface in Java has remained a complex topic for many beginners to understand. The first thing which puzzles many programmers is the fact that you cannot define any method inside interface, it a just declaration. By rule, all method inside interface must be abstract (Well, this rule is changing in Java 8 to allow lambda expressions, now interface can have one non-abstract method,...  more»
An interface in Java has remained a complex topic for many beginners to understand. The first thing which puzzles many programmers is the fact that you cannot define any method inside interface, it a just declaration. By rule, all method inside interface must be abstract (Well, this rule is changing in Java 8 to allow lambda expressions, now interface can have one non-abstract method, also known as a default method). So, if you can't define anything, Why we need an interface? what's the use of an interface, if we are anyway going to write a class and override them to provide behaviour, Can't we declare those methods inside the class itself without using interface etc. Well, if you are thinking in terms of behaviour then you are really missing the point of interface. «less

0 0
B

Balaji replied | 03 Oct

Polymorphism is one of the key uses of inheritance. For ex, there are many implementations of List interface. Any implementation can be taken as a list object. List list = new ArrayList(), List list2 = new LinkedList etc., This goes to many levels.

0 0

Answer

You can add upto 6 Images

W

Show previous answers

Sreekanth replied | 18 Aug

There are two types of exceptions: checked exceptions and unchecked exceptions. The main difference between checked and unchecked exception is that the checked exceptions are checked at compile-time while unchecked exceptions are checked at runtime.

0 0

Gsoft replied | 27 Aug

Checked Exceptions: Which Exception classes are not extends RuntimeException class those are Checked exceptions.
Unchecked Exceptions: Which Exception classes are extends RuntimeException class those are Unchecked exceptions.

0 0

Answer

You can add upto 6 Images

J

Janardan 08 Jul in  Java Training Classes

Show previous answers

A

Allwyn Lopes replied | 21 Jul

The exception is treated as uncaught exception and percolates to calling method. If there is a finally block the finally block is executed and the exception flows back to calling method.

0 0

Sreekanth replied | 18 Aug

When an exception occur inside the catch block then in that case we have a condition of Exception called Uncaught exception. As our try-catch block is not able to handle it.Now below is how that is handled :

Java actually handles uncaught exceptions according to the thread in which they occur. When an uncaught exception occurs in a particular thread, Java looks for what...  more»
When an exception occur inside the catch block then in that case we have a condition of Exception called Uncaught exception. As our try-catch block is not able to handle it.Now below is how that is handled :

Java actually handles uncaught exceptions according to the thread in which they occur. When an uncaught exception occurs in a particular thread, Java looks for what is called anuncaught exception handler, actually an implementaiton of the interface UncaughtExceptionHandler. The latter interface has a method handleException(), which the implementer overrides to take appropriate action, such as printing the stack trace to the console. «less

0 0

Answer

You can add upto 6 Images

V

Vinodha 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

1. Throws clause in used to declare an exception and thow keyword is used to throw an exception explicitly.

2. If we see syntax wise than throw is followed by an instance variable and throws is followed by exception class names.

3. The keyword throw is used inside method body to invoke an exception and throws clause is used in method declaration (signature).

4....  more»
1. Throws clause in used to declare an exception and thow keyword is used to throw an exception explicitly.

2. If we see syntax wise than throw is followed by an instance variable and throws is followed by exception class names.

3. The keyword throw is used inside method body to invoke an exception and throws clause is used in method declaration (signature).

4. By using Throw keyword in java you cannot throw more than one exception but using throws you can declare multiple exceptions «less

0 0

Vishal replied | 26 Aug

Throw means throw an exception right away. And throws is a declaration that the method can tgrow an exception of apecified type.

0 0

Answer

You can add upto 6 Images

S

Shreya 08 Jul in  Java Training Classes

Show previous answers

S

Sayyada Mubeen replied | 07 Aug

Yes

0 0

Sreekanth replied | 18 Aug

Yes, When you catch an exception, it's possible to rethrow it. This is just the same as if you hadn't caught it in the first place - the exception will continue to bubble up through the layers until it reaches some other code that catches it (or it reaches the top of the stack and the program exits).

So why would you do this? Well, it means you have temporary access...  more»
Yes, When you catch an exception, it's possible to rethrow it. This is just the same as if you hadn't caught it in the first place - the exception will continue to bubble up through the layers until it reaches some other code that catches it (or it reaches the top of the stack and the program exits).

So why would you do this? Well, it means you have temporary access to the exception at the point where you caught it. One situation I've used this in is where I want to log the fact that an error has occurred, but the real error handling is happening at a higher level. You'd only do this, though, if this local logging could add something useful that the higher level error handling doesn't know about. «less

0 0

Answer

You can add upto 6 Images

S

Sujatha 08 Jul in  Java Training Classes

Show previous answers

S

Sudipta Samanta replied | 04 Aug

We cannot change the String object because String is immutable. Vice-versa is not the same. String is immutable because of the security. Sting is storing the data in String Pool which can be used by multiple reference of String object. So during creation of String it is searching in the Pool the value is present or not. If present object is pointing to the String. So multiple object...  more»
We cannot change the String object because String is immutable. Vice-versa is not the same. String is immutable because of the security. Sting is storing the data in String Pool which can be used by multiple reference of String object. So during creation of String it is searching in the Pool the value is present or not. If present object is pointing to the String. So multiple object can refer to single value. «less

0 0

Sreekanth replied | 18 Aug

In java, string objects are immutable. Immutable simply means unmodifiable or unchangeable.

Once string object is created its data or state can't be changed but a new string object is created.

0 0

Answer

You can add upto 6 Images

S

Shubham 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

Serialization is the process of turning an object in memory into a stream of bytes so you can do stuff like store it on disk or send it over the network. Deserialization is the reverse process: turning a stream of bytes into an object in memory.

0 0

Vishal replied | 26 Aug

The process of saving the state of an object into a persistent storage is called serialization. Only Serializable objects can be serialized.

0 0

Answer

You can add upto 6 Images

A

Anitha 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

Yes.

0 0

Alok replied | 26 Aug

no effect, after compiling java file it will have only one import.

0 0

Answer

You can add upto 6 Images

V

Show previous answers

Md Aftab replied | 04 Aug

1. In case of Serializable, default serialization process is used. while in case of Externalizable custom Serialization process is used which is implemented by application.


2. JVM gives call back to readExternel() and writeExternal() of java.io.Externalizalbe interface for restoring and writing objects into persistence.

3. Externalizable interface provides...  more»
1. In case of Serializable, default serialization process is used. while in case of Externalizable custom Serialization process is used which is implemented by application.


2. JVM gives call back to readExternel() and writeExternal() of java.io.Externalizalbe interface for restoring and writing objects into persistence.

3. Externalizable interface provides complete control of serialization process to application.

4. readExternal() and writeExternal() supersede any specific implementation of writeObject and readObject methods. «less

0 0

Sreekanth replied | 18 Aug

1. In case of Serializable, default serialization process is used. while in case of Externalizable custom Serialization process is used which is implemented by application.

2. JVM gives call back to readExternel() and writeExternal() of java.io.Externalizalbe interface for restoring and writing objects into persistence.

3. Externalizable interface provides...  more»
1. In case of Serializable, default serialization process is used. while in case of Externalizable custom Serialization process is used which is implemented by application.

2. JVM gives call back to readExternel() and writeExternal() of java.io.Externalizalbe interface for restoring and writing objects into persistence.

3. Externalizable interface provides complete control of serialization process to application.

4. readExternal() and writeExternal() supersede any specific implementation of writeObject and readObject methods.

Though Externalizable provides complete control, it also presents challenges to serialize super type state and take care of default values in case of transient variable and static variables in Java. If used correctly Externalizable interface can improve performance of serialization process. «less

0 0

Answer

You can add upto 6 Images

P

Prakash 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

A singleton should be used when managing access to a resource which is shared by the entire application, and it would be destructive to potentially have multiple instances of the same class

0 0

Vishal replied | 26 Aug

A singleton class is one which has only one object of itself own which is a static object and outside the class we cant create another object as the constructor is private.

0 0

Answer

You can add upto 6 Images

R

Rahul 08 Jul in  Java Training Classes

Show previous answers

Shri replied | 05 Aug

Reflection is an API in java , you can say reflection API is like mirror. using reflection api you can get all the information of class . For example : you can find how many methods/annotation available in particular class.and their name, argument . ..etc..

0 0

Sreekanth replied | 18 Aug

Java Reflection is a process of examining or modifying the run time behavior of a class at run time.

The java.lang.Class class provides many methods that can be used to get metadata, examine and change the run time behavior of a class.

The java.lang and java.lang.reflect packages provide classes for java reflection.

Where it is used

The...  more»
Java Reflection is a process of examining or modifying the run time behavior of a class at run time.

The java.lang.Class class provides many methods that can be used to get metadata, examine and change the run time behavior of a class.

The java.lang and java.lang.reflect packages provide classes for java reflection.

Where it is used

The Reflection API is mainly used in:

IDE (Integrated Development Environment) e.g. Eclipse, MyEclipse, NetBeans etc.
Debugger
Test Tools etc. «less

0 0

Answer

You can add upto 6 Images

D

Deepa 08 Jul in  Java Training Classes

Show previous answers

Sreekanth replied | 18 Aug

I normally used this What is the difference between an Abstract Class and an Interface as a quick way to gauge someone. Lots of times, its the first or second question I will ask. I cannot tell you how many times people will mess this question up. 9 times out of 10, people read about it at some http://www.basicinterviewquestions.com...  more»
I normally used this “What is the difference between an Abstract Class and an Interface” as a quick way to gauge someone. Lots of times, its the first or second question I will ask. I cannot tell you how many times people will mess this question up. 9 times out of 10, people read about it at some http://www.basicinterviewquestions.com (not a real site hehe), giving the canned response of “You can define default functionality in an abstract class and you can just define functions in an interface”. The curve ball is thrown when you ask “Why would you use one over the other?”. That will earn you the ‘deer in headlights’ look. The other 1 out of 10 you will get a “I never had to use that so I don’t know”.

At the top level, the are a few basic difference. Abstract classes allow for default default function definition. This means that whatever class extends the abstract class will have access to this. If we have a base class where all the classes will perform the same function, then we can define that in our Abstract class. An interface is a list of functions or properties that if a class implements it, it will have to have those functions defined within it. It is a situation of “Is-A” vs “Can-Do-this”. Objects that extends an Abstract class “Is-A” base class. Objects that implement “Can-Do-This”. Now if I asked this question and got the answer, yes, that would be the correct answer. However, I want to know why one would want to use an interface over an abstract class, and vice versa. «less

0 0

Vishal replied | 26 Aug

No, a class cant have interfaces but it can implement interfaces. But viceversa is not true.

0 0

Answer

You can add upto 6 Images

A

Ankit 08 Jul in  Java Training Classes

Show previous answers

S

Surya replied | 04 Aug

All javabeans are pojos ,But not all pojos are not javabeans.

0 0

Sreekanth replied | 18 Aug

In computing based on the Java Platform, JavaBeans are classes that encapsulate many objects into a single object (the bean). They are serializable, have a zero-argument constructor, and allow access to properties using getter and setter methods.

0 0

Answer

You can add upto 6 Images

About UrbanPro

UrbanPro.com helps you to connect with the best Java Training Classes in India. Post Your Requirement today and get connected.

Have a Question?

Thousands of expert tutors are available to answer your question

Looking for Java Training Classes?

Find best Java Training Classes in your locality on UrbanPro.

FIND NOW

Do you offer Java Training Classes?

Create Free Profile Now »

Top Contributors

Career Group

76 Answers

Shibaji

59 Answers

Devendra

47 Answers

Sreekanth

38 Answers

Jay

37 Answers

Algorithm

35 Answers

Vaibhtech

32 Answers

Ashish

29 Answers

Srinivas

25 Answers

Sponsored

Find Best Java Training Classes?

Find Now »