• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • Java

Java interview questions and answers for freshers Page 4

Java Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

Java Question Topics

    Category (1)

    General Ability (3)

  • General Knowledge (3)
  • HR Interview (3)

  • Interview (3)
  • Logical Reasoning (5)

  • Blood Relations (1)
  • Coding Decoding (2)
  • Cryptography (1)
  • Seating Arrangement (1)
  • Numerical Ability (4)

  • Algebra (1)
  • Number System (1)
  • Profit and Loss (1)
  • Programming (124)

  • Arrays (7)
  • Basics (5)
  • Database (4)
  • Definition (25)
  • Functions (3)
  • Output (4)
  • Program (20)
  • Puzzles (1)
  • Technical (43)
  • Verbal Ability (1)

  • Miscellaneous (1)
Keep an EYE (0)
Solved Question (3) UnSolved Question (258)
Pages: 27FirstPrev123456789NextLast
Advertisements

(#M40166398) JAVA QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

21. you have three dice each side is numbered as 1,2,3,4,5,6 .you have to take a
number from user check that number as sum of any side number of these
three dice.like we take number as 5 then the possibility are (1,1,3) (1,2,2)
(1,3,1) (2,1,2) (2,2,1) (3,1,1) and is 6 possibility. So write to a program for that.

Asked In Java Varun Kumar yr (5 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (6)   (5) Submit Your Solution Arrays

(#M40166286) JAVA QUESTION NEAREST PERFECT SQUARE Keep an EYE Keep an eye puzzle Keep an eye puzzle

Find the nearest perfect square of the given number.
Sample input:600
Sample output:576.

Sample input:47011
Sample output:47089

Asked In Java Arun (6 years ago)
Solved divya Read Solution (1)
Is this Puzzle helpful?   (5)   (2) Submit Your Solution Database
Advertisements

(#M40166061) JAVA QUESTION efficient means of execution Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which checks the object code to determine whether there are more efficient means of execution?
1)Interpreter
2) Linker
3)Compiler
4) Optimizer

Asked In Java Mehul KOTHARI (6 years ago)
Unsolved Read Solution (15)
Is this Puzzle helpful?   (35)   (23) Submit Your Solution Technical

(#M40165443) JAVA QUESTION Circles and distance Keep an EYE Keep an eye puzzle Keep an eye puzzle

Circles and Distances
Problem Description
Task is to calculate the straight line distance between the two objects moving in a circular path. They may move at different velocities. The distance has to be calculated after N seconds.

The figure and commentary below it, explains the problem in detail.

com.tcs.cv.automata.ei.middleware.DocxToHtmlConverter@491cde5b:image1.png

We have two point objects B and C at rest on a straight line at a distance r1 and r2 units from a point A. At time t=0 seconds, the objects start moving in a circular path with A at the center with velocity v1 and v2 degrees per second.

Given inputs v1, v2, r1 and r2, calculate the distance between the B and C after N seconds.

Distance should be printed up to an accuracy of 2 places after the decimal point. Use Rounding Half-up semantics.

Input Format
First line contains velocity of object B in degrees per second (v1)

Second line contains distance of object B from A (r1)

Third line contains velocity of object C in degrees per second (v2)

Fourth line contains distance of object C from A (r2)

Fifth line contains time in seconds after which the distance between B and C, is to be measured (N)

Output
The distance between B and C, N seconds after they are set in motion

Constraints

v1, v2, r1, r2 > 0 and all are integer values.

r2 > r1

0 < n <= 100

The objects move in anticlockwise direction

v1, v2 <=360

r2 <= 100


Explanation
Example 1

Input

90

5

270

10

1

Output

15.00

Explanation

After 1 second, the object at B would cover 90 degrees and the object at C would cover 270 degrees. Both the objects would be vertically opposite to each other and would lie in a straight line.

So the distance between them would be equal to the sum of their distance from the origin A=5+10= 15

Asked In Java joshika (7 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (2)   (0) Submit Your Solution

(#M40165431) JAVA QUESTION string Keep an EYE Keep an eye puzzle Keep an eye puzzle

function of array

Asked In Java karthi (7 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (1) Submit Your Solution Interview

(#M40159591) JAVA QUESTION string Keep an EYE Keep an eye puzzle Keep an eye puzzle

how to replace , in a given string without using predefined methods

Asked In Java Ramya Krishna T (8 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (22)   (9) Submit Your Solution

(#M40158275) JAVA QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

write a java programof string ; first letter should be upper case and rest in lowecase

Asked In Java div (8 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (9)   (2) Submit Your Solution Program

(#M40157238) JAVA QUESTION Dinfference Keep an EYE Keep an eye puzzle Keep an eye puzzle

Distinguish class and object?

Asked In Java Surendra Naraga (9 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (9)   (4) Submit Your Solution Basics

(#M40157044) JAVA QUESTION technical Keep an EYE Keep an eye puzzle Keep an eye puzzle

A Chess board position is accurately captured by Forsyth-Edwards notation and is abbreviated as FEN. A FEN "record" defines a particular game position, all in one text line and using only the ASCII character set. A FEN record contains six fields. A complete description of the FEN format to represent Chess positions can be found at here

For the purpose of this problem only consider first of the six fields of FEN. Before we describe the problem, let us look at how FEN maps to a board position. The following 5 images show board positions and its corresponding FEN representation.


Figure 1.

Asked In Java satheesh (9 years ago)
Unsolved
Is this Puzzle helpful?   (33)   (12) Submit Your Solution Puzzles

(#M40156335) JAVA QUESTION Any Keep an EYE Keep an eye puzzle Keep an eye puzzle

whether java is purely object oriented ?

Asked In Java Balaji S (9 years ago)
Unsolved Read Solution (26)
Is this Puzzle helpful?   (66)   (26) Submit Your Solution Algebra
Keep an EYE (0)
Solved Question (3) UnSolved Question (258)
Pages: 27FirstPrev123456789NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

Six is a number perfect in itself, and not because God created the world in six days; rather the contrary is true. God created the world in six days because this number is perfect, and it would remain perfect, even if the work of the six days did not exis

Saint Augustine of Hippo

The person who can solve mathematical problems,can lead life easily ,Maths tellu that every problem as solution...we can find number of solutions for one problem ...Aplly it in the life also we can lead our life happily...

swetha

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com