[go: up one dir, main page]

0% found this document useful (0 votes)
11 views4 pages

Placemet Preparation-Activity 7-Basic-Java

The document outlines various coding and technical interview questions related to Java for different companies including Cognizant, Accenture, Wipro, and others. It includes programming tasks, conceptual questions about Java features, and differences between various Java components. The content serves as a preparation guide for candidates seeking positions in software development.

Uploaded by

m.navya2217
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

Placemet Preparation-Activity 7-Basic-Java

The document outlines various coding and technical interview questions related to Java for different companies including Cognizant, Accenture, Wipro, and others. It includes programming tasks, conceptual questions about Java features, and differences between various Java components. The content serves as a preparation guide for candidates seeking positions in software development.

Uploaded by

m.navya2217
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Placement Preparation Activity-7: Coding Round/Technical

Interview:Basic JAVA

Company: Cognizant

Write a Java program to print the following pattern:

12

123

1234

12345
Company: Accenture

Write a Java program to calculate the sum of digits of a given number.

Company: Wipro

Write a Java program to print the Fibonacci sequence up to the nth term.

Company: TCS

What is the difference between JDK, JRE, and JVM

Company: Infosys

Explain the significance of the main() method in Java.

Company: Accenture

What are the key features of Java

Dept. of CSE (AI), MIT Mysore


Company: Wipro

Why is Java called platform-independent

Company: Cognizant

What is the purpose of the final keyword in Java

Company: Capgemini

What is the range of the int data type in Java

Company: HCL

How is a String different from a StringBuilder

Company: Mindtree

What is the default value of the boolean data type in Java

Company: DXC Technology

What will happen if you use an uninitialized variable in Java

Company: IBM

Explain the concept of typecasting in Java. Provide examples.

Company: TCS

What is the difference between while and do-while loops


Company: Capgemini

Explain the switch-case statement with an example.

Company: Wipro

How does the break keyword work inside a loop

Company: HCL
What will be the output of this code

int a = 5, b = 10;
System.out.println(a > b "a is larger" : "b is larger");
Company: Infosys

What is the difference between abstract classes and interfaces in Java

Company: Cognizant

What is method overloading and method overriding

Dept. of CSE (AI), MIT Mysore


Company: Mindtree

Explain the concept of inheritance in Java with an example.

Company: Accenture

What is the use of the super keyword

Company: DXC Technology

Can a class implement multiple interfaces

Company: TCS

What are checked and unchecked exceptions in Java

Company: Capgemini

How is the try-catch block used in Java

Company: TCS

What are checked and unchecked exceptions in Java

Company: TCS

What are checked and unchecked exceptions in Java

Company: Infosys

What is the difference between throw and throws

Company: Wipro
Explain the purpose of the finally block in Java.
Company: Cognizant

What is a NullPointerException, and how can it be avoided

Company: Infosys

What is the difference between ArrayList and LinkedList

Company: Wipro

Explain the purpose of the Iterator interface in Java.

Company: TCS

What are the differences between HashMap and HashTable

Dept. of CSE (AI), MIT Mysore


Company: Accenture

Explain the concept of multithreading in Java.

Company: Accenture

Explain the concept of multithreading in Java.

Dept. of CSE (AI), MIT Mysore

You might also like