Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
String concatenation and comparison
public class StringTest {
public static void main(String[] args) {
int i = 4;
int j = 5;
System.out.println ("Hello" + i); // will l print Hello4
System.out.println ( i + j) ; // will print 9
String s1 = new String ("pakistan");
String s2 = "pakistan";
if (s1 == s2) {
System.out.println("comparing string using == operator");
}
if (s1.equals( s2) ) {
System.out.println("comparing string using equal method");
On execution of the above program, following output will produce
When should I use abstract classes and when should I use interfaces? Use Interface, when: Design changing often or when various implementations only share method sign
write an application that stores at least five different department and supervisor names in a two dimensional array
Talent agencies like ICM, CAA and Paradigm represent writers, directors and actors (among other talent). These agencies take in hundreds of millions of dollars a year collecting 1
Explain the both HashSet and TreeSet? HashSet is an unordered, unsorted Set. It's a Collection set which restrict duplicate elements and also repositioning of elements. I
What is an immutable object? An immutable object is one that we can't change once it's created. Steps involved in creation of an immutable object are: Make all of its data f
Explain switch statement in java language? Switch statements are shorthands for a certain type of if statement. It is not common to see a stack of if statements all related
SQLWarning objects are a subclass of SQLException that deal with database access warnings. Warnings do not stop the implementation of an application, as exceptions do; they easily
What is the function of Network Interface Card? NIC is an I/O device which plugs within the computer and it enables it to communicate over a network.
Logical Operators Operator Functionality E x ample/ Explanation && Looks at 2 expressions & returns a
write a program for loop
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd