Computer Science, asked by likithakasireddy01, 10 months ago

class A { public static void main (string args[]) { char a='A'; a++; system.out.print((int) a); } }. Find the output​

Answers

Answered by careenlyngdoh4
0

Answer:

It’s not often that a Java developer gets through a programming interview without being evaluated for his coding skills. Many IT companies have the Java coding skill test hosted within their local intranet. And some still ask the candidates to prove their coding ability via an offline skill assessment method. Hence, a programmer should prepare himself for such faceoffs and keep looking for challenging Java coding questions.

The objective of such a coding skill assessment test is not to measure your knowledge of language syntax or the no. of functions you remember. But it’s for analyzing the programming logic you’ll apply and the design approach you choose. That’s why most of the time you’ll be given small coding snippets to brainstorm and figure out the correct output. There are chances that you get a code with errors. And the interviewer would expect you to be smart enough to judge the coding error.

Wait for a while. If you are assuming that the interviewer will ignore the language semantics and other high-level characteristics, then it’s not going to happen. These are core concepts which even you require while writing and optimizing the code. For example, in Java, Serialization is an important subject to understand. A Java developer should know how to serialize or deserialize a class. And he should be wise enough to decide where to apply serialization.

Some more concepts that one should be comfortable with are Java strings, Java collection framework, and Multithreading in Java. You will need all of them in your arsenal if wish to be a real Java programmer. Also, believe that whatever knowledge we learn today becomes the bridge for getting on to the next level of technologies like J2EE, Maven, and Spring MVC.

Coming back to the topic of the day, the Thirty Java Coding Questions Challenge that we’ve prepared after doing a lot of filtering. All these questions would make you practice your Java skills and test your understanding of programming concepts and logical skills.

Top Java Coding Questions

Question-1. Which of the following would the below Java coding snippet return as its output?

class Super {

public int index = 1;

}

Answered by abhishekgowdacs3
0

Answer:

class Assessment1{ static int x, y,

public int x1,y1;

class Assessment2{

static int x, y, public int x1,y1;

}

class Assessment {

public static void main(String args[]) { Assessment1 as = new Assessment1(); Assessment2 as1 = new Assessment20); System.out.println(as.x+" "+as.y); System.out.println(as1.x1+""+as1.y1); }

}

Similar questions